summaryrefslogtreecommitdiff
path: root/layouts/_partials/terms.html
diff options
context:
space:
mode:
author2026-02-10 17:11:24 +0300
committer2026-02-10 20:08:10 +0300
commit2ecb959c5b9c2b0750212af0349fd6d4a5c25258 (patch)
tree16b3268b7dd825a13d4d8c0eb00007cc7f9a8ac1 /layouts/_partials/terms.html
downloadbase-2ecb959c5b9c2b0750212af0349fd6d4a5c25258.tar.gz
base-2ecb959c5b9c2b0750212af0349fd6d4a5c25258.tar.bz2
base-2ecb959c5b9c2b0750212af0349fd6d4a5c25258.tar.xz
base-2ecb959c5b9c2b0750212af0349fd6d4a5c25258.zip
Первый коммитHEADmaster
Diffstat (limited to 'layouts/_partials/terms.html')
-rw-r--r--layouts/_partials/terms.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/layouts/_partials/terms.html b/layouts/_partials/terms.html
new file mode 100644
index 0000000..b666922
--- /dev/null
+++ b/layouts/_partials/terms.html
@@ -0,0 +1,29 @@
+{{- $page := .page }}
+
+{{- 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>
+ <h3>{{ i18n $label }}:</h3>
+ <ul class="taxonomy">
+ {{- range . }}
+ <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
+ {{- end }}
+ </ul>
+</div>
+{{- end }}
+{{- end }} \ No newline at end of file