diff options
| author | 2026-02-03 10:53:30 +0300 | |
|---|---|---|
| committer | 2026-02-03 10:53:30 +0300 | |
| commit | a7d6e1c0f4d73ac1ff10bc001aef726f804120c2 (patch) | |
| tree | c0d639c9059a44179a26782a7448d366a8f3ee5a /themes/neonxp/layouts/_partials/terms.html | |
| parent | upd (diff) | |
| download | blog-a7d6e1c0f4d73ac1ff10bc001aef726f804120c2.tar.gz blog-a7d6e1c0f4d73ac1ff10bc001aef726f804120c2.tar.bz2 blog-a7d6e1c0f4d73ac1ff10bc001aef726f804120c2.tar.xz blog-a7d6e1c0f4d73ac1ff10bc001aef726f804120c2.zip | |
Поправил таксономию и изображения
Diffstat (limited to 'themes/neonxp/layouts/_partials/terms.html')
| -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> |
