mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +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">
|
||||||
|
@ -58,4 +72,4 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- End blog post content -->
|
<!-- End blog post content -->
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue