Fix for issue 236

Added logic to layouts/blog/single.html that checks front matter to display other taxonomies.
This commit is contained in:
Luke Rawlins 2020-09-23 20:05:01 -04:00
parent 81e8120a5a
commit faf94a8cfa

View file

@ -51,6 +51,20 @@
{{ end }}
</p>
{{ end }}
<!-- Start fix 236 -->
{{ range $taxonomy_term, $taxonomy := .Params }}
{{ with $.Site.GetPage (printf "/%s" $taxonomy_term) }}
<p>
{{ if (ne $taxonomy_term "tags") }}
{{ $taxonomy_term | title }}:
<a href="{{ .Permalink }}">{{ range $key, $value := $taxonomy }}
{{ $value }}</a>
</p>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
<!-- End fix 236 -->
</div>
<!-- Begin blog post content -->
<div class="container markdown top-pad">
@ -58,4 +72,4 @@
</div>
<!-- End blog post content -->
{{ partial "comments.html" . }}
{{ end }}
{{ end }}