aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/terms.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/terms.html')
-rw-r--r--layouts/partials/terms.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/terms.html b/layouts/partials/terms.html
new file mode 100644
index 0000000..9802a11
--- /dev/null
+++ b/layouts/partials/terms.html
@@ -0,0 +1,9 @@
+{{- $page := .page }}
+{{- $taxonomy := .taxonomy }}
+
+{{- with $page.GetTerms $taxonomy }}
+ {{- $label := (index . 0).Parent.LinkTitle }}
+ {{- range . }}
+ <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>&nbsp;
+ {{- end }}
+{{- end }}