diff options
Diffstat (limited to 'themes/neonxp/layouts/_partials')
| -rw-r--r-- | themes/neonxp/layouts/_partials/terms.html | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/themes/neonxp/layouts/_partials/terms.html b/themes/neonxp/layouts/_partials/terms.html index ec607ca..b666922 100644 --- a/themes/neonxp/layouts/_partials/terms.html +++ b/themes/neonxp/layouts/_partials/terms.html @@ -1,7 +1,20 @@ {{- $page := .page }} -{{- $taxonomy := .taxonomy }} -{{- with $page.GetTerms $taxonomy }} +{{- with $page.GetTerms "categories" }} +{{- if . }} +{{- $label := (index . 0).Parent.LinkTitle }} +<div> + <h3>{{ i18n $label }}:</h3> + <ul class="taxonomy"> + {{- range . }} + <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li> + {{- end }} + </ul> +</div> +{{- end }} +{{- end }} + +{{- with $page.GetTerms "tags" }} {{- if . }} {{- $label := (index . 0).Parent.LinkTitle }} <div> |
