mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-12-21 15:48:46 +00:00
16 lines
No EOL
464 B
HTML
16 lines
No EOL
464 B
HTML
<ul class="breadcrumbs">
|
|
{{ template "breadcrumb" (dict "p1" . "p2" .) }}
|
|
</ul>
|
|
|
|
{{ define "breadcrumb" }}
|
|
{{ if .p1.Parent }}
|
|
{{ template "breadcrumb" (dict "p1" .p1.Parent "p2" .p2 ) }}
|
|
{{ else if not .p1.IsHome }}
|
|
{{ template "breadcrumb" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
|
|
{{ end }}
|
|
{{ if not .p1.IsHome }}
|
|
<li{{ if eq .p1 .p2 }} class="active"{{ end }}>
|
|
<a href="{{ .p1.RelPermalink }}">{{ .p1.Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }} |