mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
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:
parent
9c09564590
commit
5e40132673
@ -47,9 +47,8 @@
|
|||||||
<footer class="post-footer">
|
<footer class="post-footer">
|
||||||
{{- if .Params.tags }}
|
{{- if .Params.tags }}
|
||||||
<ul class="post-tags">
|
<ul class="post-tags">
|
||||||
{{- range .Params.tags }}
|
{{- range ($.GetTerms "tags") }}
|
||||||
{{- $href := print (absLangURL "tags/") (urlize .) }}
|
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||||
<li><a href="{{ $href }}">{{ . }}</a></li>
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user