about summary refs log tree commit diff
path: root/layouts/partials/breadcrumbs.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/breadcrumbs.html')
-rw-r--r--layouts/partials/breadcrumbs.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html
new file mode 100644
index 0000000..3dc235b
--- /dev/null
+++ b/layouts/partials/breadcrumbs.html
@@ -0,0 +1,14 @@
+<nav aria-label="breadcrumb" class="breadcrumb">
+  <ol>
+    {{ range .Ancestors.Reverse }}
+    {{ if in .Params.categories "book" }}
+      <li>
+        <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
+      </li>
+    {{ end }}
+    {{ end }}
+    <li class="active">
+      <a aria-current="page">{{ .LinkTitle }}</a>
+    </li>
+  </ol>
+</nav>