diff options
Diffstat (limited to 'layouts/partials/breadcrumbs.html')
-rw-r--r-- | layouts/partials/breadcrumbs.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 04c4ac3..c4fcef4 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -1,6 +1,10 @@ +{{ $crumbs := .Ancestors.Reverse }} +{{ if not .Site.Params.OnlyBooks }} +{{ $crumbs = where $crumbs "Params.categories" "intersect" (slice "book") }} +{{ end }} <nav aria-label="breadcrumb" class="breadcrumb"> <ol> - {{ range where .Ancestors.Reverse "Params.categories" "intersect" (slice "book") }} + {{ range $crumbs }} <li> <a href="{{ .Permalink }}">{{ .LinkTitle }}</a> </li> |