From faf94a8cfaecf9b1af958ba6ac10362237b46a8a Mon Sep 17 00:00:00 2001
From: Luke Rawlins
Date: Wed, 23 Sep 2020 20:05:01 -0400
Subject: [PATCH] Fix for issue 236
Added logic to layouts/blog/single.html that checks front matter to display other taxonomies.
---
layouts/blog/single.html | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index f5fadb7..4bb8e81 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -51,6 +51,20 @@
{{ end }}
{{ end }}
+
+ {{ range $taxonomy_term, $taxonomy := .Params }}
+ {{ with $.Site.GetPage (printf "/%s" $taxonomy_term) }}
+
+ {{ if (ne $taxonomy_term "tags") }}
+ {{ $taxonomy_term | title }}:
+ {{ range $key, $value := $taxonomy }}
+ {{ $value }}
+
+ {{ end }}
+ {{ end }}
+ {{ end }}
+ {{ end }}
+
@@ -58,4 +72,4 @@
{{ partial "comments.html" . }}
-{{ end }}
\ No newline at end of file
+{{ end }}