mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-25 07:48:54 +00:00
ba4b506b2f
Closes #421
13 lines
851 B
HTML
13 lines
851 B
HTML
{{- if (gt (len .Ancestors.Reverse) 1) | and (eq .Site.Params.breadcrumb.enable true) -}}
|
|
<nav aria-label="breadcrumb" class="breadcrumb-container{{ if .Site.Params.breadcrumb.sticky }} sticky{{ end }}">
|
|
<ol class="breadcrumb">
|
|
{{- range .Ancestors.Reverse -}}
|
|
{{- if or .Site.Params.breadcrumb.showHome (not .IsHome) -}}
|
|
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}" title="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage | and .Summary }}{{ .Summary }}{{ else }}{{ title .LinkTitle }}{{ end }}{{ end }}">{{ cond (and .Site.Params.breadcrumb.showHome .IsHome) (T "single.home") ((lower .LinkTitle | T) | default (title .LinkTitle)) }}</a></li>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
<li class="breadcrumb-item active" aria-current="page">{{ title .LinkTitle }}</li>
|
|
</ol>
|
|
</nav>
|
|
{{- end -}}
|