mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-12-10 01:39:05 +00:00
init
This commit is contained in:
16
layouts/partials/page_path.html
Normal file
16
layouts/partials/page_path.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<nav class="page-path">
|
||||
{{- range .Ancestors.Reverse -}}
|
||||
{{- if compare.Ne .Kind "taxonomy" -}}
|
||||
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||
{{- else -}}
|
||||
{{- .LinkTitle -}}
|
||||
{{- end -}}
|
||||
/
|
||||
{{- end -}}
|
||||
{{- if compare.Ne .Kind "404" -}}
|
||||
{{- .LinkTitle -}}
|
||||
{{- else -}}
|
||||
???
|
||||
{{- end -}}
|
||||
</nav>
|
||||
{{- /**/ -}}
|
||||
Reference in New Issue
Block a user