mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +00:00
Fix for issue 236
Added logic to layouts/blog/single.html that checks front matter to display other taxonomies.
This commit is contained in:
parent
81e8120a5a
commit
faf94a8cfa
1 changed files with 15 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue