diff --git a/themes/maik-blog/assets/scss/_main.scss b/themes/maik-blog/assets/scss/_main.scss index a3ff14d..1e15793 100644 --- a/themes/maik-blog/assets/scss/_main.scss +++ b/themes/maik-blog/assets/scss/_main.scss @@ -476,6 +476,10 @@ table { li { display: inline; + + &::after { + content: " > "; + } } } } diff --git a/themes/maik-blog/assets/scss/_posts.scss b/themes/maik-blog/assets/scss/_posts.scss index 6928222..05ba159 100644 --- a/themes/maik-blog/assets/scss/_posts.scss +++ b/themes/maik-blog/assets/scss/_posts.scss @@ -57,6 +57,12 @@ font-size: 1.1rem; margin: 5px 0 10px 0; font-weight: 600; + + .breadcrumbs { + li:last-child::after { + display: none; + } + } } &-year { diff --git a/themes/maik-blog/layouts/_default/list.html b/themes/maik-blog/layouts/_default/list.html index 554d509..93f5168 100644 --- a/themes/maik-blog/layouts/_default/list.html +++ b/themes/maik-blog/layouts/_default/list.html @@ -2,7 +2,7 @@ {{ $paginator := .Paginate .Data.Pages }}
-
{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}
+
{{ partial "breadcrumbs.html" (dict "page" . "min" 1) }}

{{ .Title }}

diff --git a/themes/maik-blog/layouts/_default/single.html b/themes/maik-blog/layouts/_default/single.html index 692fe05..d35fc3f 100644 --- a/themes/maik-blog/layouts/_default/single.html +++ b/themes/maik-blog/layouts/_default/single.html @@ -25,7 +25,7 @@
-
{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}
+
{{ partial "breadcrumbs.html" (dict "page" . "min" 1) }}

{{ .Title | markdownify }} diff --git a/themes/maik-blog/layouts/partials/breadcrumbs.html b/themes/maik-blog/layouts/partials/breadcrumbs.html index 30649e0..bf25a64 100644 --- a/themes/maik-blog/layouts/partials/breadcrumbs.html +++ b/themes/maik-blog/layouts/partials/breadcrumbs.html @@ -20,13 +20,10 @@
    {{- range $index, $breadcrumb := $breadcrumbs }}
  1. - {{ $breadcrumb.name }}{{ if ne $index (sub (len $breadcrumbs) 1) }} > {{ end }} + {{ $breadcrumb.name }}
  2. {{- end }}
- {{- if and $breadcrumbs .end }} - {{ .end }} - {{- end }} {{- end }} {{- end }} diff --git a/themes/maik-blog/layouts/portfolio/list.html b/themes/maik-blog/layouts/portfolio/list.html index 49dec8d..b1f1342 100644 --- a/themes/maik-blog/layouts/portfolio/list.html +++ b/themes/maik-blog/layouts/portfolio/list.html @@ -1,7 +1,7 @@ {{ define "main" }}
-
{{ partial "breadcrumbs.html" (dict "page" . "end" ">") }}
+
{{ partial "breadcrumbs.html" (dict "page" .) }}

Portfolio

diff --git a/themes/maik-blog/layouts/portfolio/single.html b/themes/maik-blog/layouts/portfolio/single.html index 47c3097..11cebb1 100644 --- a/themes/maik-blog/layouts/portfolio/single.html +++ b/themes/maik-blog/layouts/portfolio/single.html @@ -20,7 +20,7 @@
-
{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}
+
{{ partial "breadcrumbs.html" (dict "page" . "min" 1) }}

{{ .Title | markdownify }} diff --git a/themes/maik-blog/layouts/writeups/list.html b/themes/maik-blog/layouts/writeups/list.html index 22398b3..381d29a 100644 --- a/themes/maik-blog/layouts/writeups/list.html +++ b/themes/maik-blog/layouts/writeups/list.html @@ -2,7 +2,7 @@ {{ $paginator := (.Paginate .RegularPagesRecursive) }}
-
{{ partial "breadcrumbs.html" (dict "page" . "end" ">") }}
+
{{ partial "breadcrumbs.html" (dict "page" .) }}

{{ .Title }}