From 4cc33c91dbb932c4e1112c08ef8593609fe5b529 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Tue, 1 Sep 2020 19:08:57 +0200 Subject: [PATCH] List taxonomy values below post --- templates/post.gohtml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/post.gohtml b/templates/post.gohtml index a626c4a..ef3f90b 100644 --- a/templates/post.gohtml +++ b/templates/post.gohtml @@ -10,6 +10,18 @@
{{ md . }}
{{ end }} + {{ $taxonomies := blog.Taxonomies }} + {{ $post := . }} + {{ range $i, $tax := $taxonomies }} + {{ $tvs := ps $post $tax.Name }} + {{ if gt (len $tvs) 0 }} +

In {{ $tax.Title }}: + {{ range $j, $tv := $tvs }} + {{ $tv }} + {{ end }} +

+ {{ end }} + {{ end }} {{ end }}