Add Support for i18n taxonomy for `tags`

closes: #876
This commit is contained in:
Aditya Telange 2022-04-23 09:24:12 +05:30
parent 8671af6e0c
commit 1d2ecfedac
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 2 additions and 3 deletions

View File

@ -36,13 +36,12 @@
{{- end }}
<footer class="post-footer">
{{- if .Params.tags }}
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
<ul class="post-tags">
{{- range ($.GetTerms "tags") }}
{{- range ($.GetTerms $tags) }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- end }}
{{- if (.Param "ShowPostNavLinks") }}
{{- partial "post_nav_links.html" . }}
{{- end }}