+ {{if $showBreadcrumb }}
+
+
+
+ {{ $position := sub (len (split .RelPermalink "/")) 1 }}
{{ $name := (partial "title" .) }}
- {{ template "breadcrumb" dict "page" . "value" $name }}
-
- {{ end }}
-
-
- {{ if $showEdit }}
+ {{ $value := (printf "- %s
" $name $position ) }}
+ {{ template "breadcrumb" dict "page" . "value" $value "position" $position }}
+
+
+ {{ end }}
+ {{ if $showEdit }}
+
+ {{ end }}
diff --git a/src/sass/_base.scss b/src/sass/_base.scss
index e1fe7ab..c42f36b 100644
--- a/src/sass/_base.scss
+++ b/src/sass/_base.scss
@@ -538,3 +538,14 @@ img {
transition-property: transform, margin-left, opacity;
will-change: transform, margin-left;
}
+
+// Breadcrumbs styles
+.breadcrumb {
+ display: inline;
+ padding: 0;
+ margin: 0;
+
+ li {
+ display: inline;
+ }
+}