Fix missing space after breadcrumb

master
Maik de Kruif 13 hours ago
parent c859780f74
commit 1a2e6feb52
No known key found for this signature in database
GPG Key ID: DB1A8C782DD43CB3
  1. 4
      themes/maik-blog/assets/scss/_main.scss
  2. 6
      themes/maik-blog/assets/scss/_posts.scss
  3. 2
      themes/maik-blog/layouts/_default/list.html
  4. 2
      themes/maik-blog/layouts/_default/single.html
  5. 5
      themes/maik-blog/layouts/partials/breadcrumbs.html
  6. 2
      themes/maik-blog/layouts/portfolio/list.html
  7. 2
      themes/maik-blog/layouts/portfolio/single.html
  8. 2
      themes/maik-blog/layouts/writeups/list.html

@ -476,6 +476,10 @@ table {
li { li {
display: inline; display: inline;
&::after {
content: " > ";
}
} }
} }
} }

@ -57,6 +57,12 @@
font-size: 1.1rem; font-size: 1.1rem;
margin: 5px 0 10px 0; margin: 5px 0 10px 0;
font-weight: 600; font-weight: 600;
.breadcrumbs {
li:last-child::after {
display: none;
}
}
} }
&-year { &-year {

@ -2,7 +2,7 @@
{{ $paginator := .Paginate .Data.Pages }} {{ $paginator := .Paginate .Data.Pages }}
<main class="posts"> <main class="posts">
<div class="posts-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}</div> <div class="posts-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "min" 1) }}</div>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>

@ -25,7 +25,7 @@
</div> </div>
<article> <article>
<div class="post-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}</div> <div class="post-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "min" 1) }}</div>
<h1 class="post-title"> <h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>

@ -20,13 +20,10 @@
<ol> <ol>
{{- range $index, $breadcrumb := $breadcrumbs }} {{- range $index, $breadcrumb := $breadcrumbs }}
<li> <li>
<a href="{{ $breadcrumb.url }}">{{ $breadcrumb.name }}</a>{{ if ne $index (sub (len $breadcrumbs) 1) }}<span> > </span>{{ end }} <a href="{{ $breadcrumb.url }}">{{ $breadcrumb.name }}</a>
</li> </li>
{{- end }} {{- end }}
</ol> </ol>
{{- if and $breadcrumbs .end }}
{{ .end }}
{{- end }}
</nav> </nav>
{{- end }} {{- end }}
{{- end }} {{- end }}

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<main class="portfolios"> <main class="portfolios">
<div class="posts-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "end" ">") }}</div> <div class="posts-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" .) }}</div>
<h1>Portfolio</h1> <h1>Portfolio</h1>

@ -20,7 +20,7 @@
</div> </div>
<article> <article>
<div class="post-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}</div> <div class="post-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "min" 1) }}</div>
<h1 class="portfolio-title"> <h1 class="portfolio-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>

@ -2,7 +2,7 @@
{{ $paginator := (.Paginate .RegularPagesRecursive) }} {{ $paginator := (.Paginate .RegularPagesRecursive) }}
<main class="posts"> <main class="posts">
<div class="posts-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "end" ">") }}</div> <div class="posts-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" .) }}</div>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>

Loading…
Cancel
Save