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:
10
layouts/partials/taxo_of_list.html
Normal file
10
layouts/partials/taxo_of_list.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{- range $taxonomy, $term_set := .Site.Taxonomies -}}
|
||||
{{- if hasPrefix $taxonomy (replaceRE "^/" "" $.Page.RelPermalink) -}}
|
||||
<nav class="taxo-list">
|
||||
{{ range $term_set }}
|
||||
<a class="button" href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a>
|
||||
{{- end -}}
|
||||
</nav>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- /**/ -}}
|
||||
Reference in New Issue
Block a user