summaryrefslogtreecommitdiff
path: root/layouts/_partials/terms.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-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