summaryrefslogtreecommitdiff
path: root/themes/neonxp/layouts/_partials/terms.html
diff options
context:
space:
mode:
author2026-02-03 10:53:30 +0300
committer2026-02-03 10:53:30 +0300
commita7d6e1c0f4d73ac1ff10bc001aef726f804120c2 (patch)
treec0d639c9059a44179a26782a7448d366a8f3ee5a /themes/neonxp/layouts/_partials/terms.html
parentupd (diff)
downloadblog-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.html17
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>