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.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html
index 3dc235b..04c4ac3 100644
--- a/layouts/partials/breadcrumbs.html
+++ b/layouts/partials/breadcrumbs.html
@@ -1,12 +1,10 @@
 <nav aria-label="breadcrumb" class="breadcrumb">
   <ol>
-    {{ range .Ancestors.Reverse }}
-    {{ if in .Params.categories "book" }}
+    {{ range where .Ancestors.Reverse "Params.categories" "intersect" (slice "book") }}
       <li>
         <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
       </li>
     {{ end }}
-    {{ end }}
     <li class="active">
       <a aria-current="page">{{ .LinkTitle }}</a>
     </li>