single: add support for custom taxonomy URLs (#125)

* fix URLs of tags in tag lists
* use recommended code by hugo for tag list generator
* https://gohugo.io/templates/taxonomy-templates/#example-list-tags-in-a-single-page-template
* closes: #113
This commit is contained in:
Kian Kasad 2020-12-10 21:58:09 -08:00 committed by GitHub
parent 9c09564590
commit 5e40132673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,9 +47,8 @@
<footer class="post-footer">
{{- if .Params.tags }}
<ul class="post-tags">
{{- range .Params.tags }}
{{- $href := print (absLangURL "tags/") (urlize .) }}
<li><a href="{{ $href }}">{{ . }}</a></li>
{{- range ($.GetTerms "tags") }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- end }}