Fix missing space after breadcrumb

master
Maik de Kruif 1 month 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 {
display: inline;
&::after {
content: " > ";
}
}
}
}

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

@ -2,7 +2,7 @@
{{ $paginator := .Paginate .Data.Pages }}
<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>

@ -25,7 +25,7 @@
</div>
<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">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>

@ -20,13 +20,10 @@
<ol>
{{- range $index, $breadcrumb := $breadcrumbs }}
<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>
{{- end }}
</ol>
{{- if and $breadcrumbs .end }}
{{ .end }}
{{- end }}
</nav>
{{- end }}
{{- end }}

@ -1,7 +1,7 @@
{{ define "main" }}
<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>

@ -20,7 +20,7 @@
</div>
<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">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>

@ -2,7 +2,7 @@
{{ $paginator := (.Paginate .RegularPagesRecursive) }}
<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>

Loading…
Cancel
Save