mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-22 03:42:53 +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 }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ 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>
|
</div>
|
||||||
<!-- Begin blog post content -->
|
<!-- Begin blog post content -->
|
||||||
<div class="container markdown top-pad">
|
<div class="container markdown top-pad">
|
||||||
|
|
Loading…
Reference in a new issue