Skip to content

Commit bf5b019

Browse files
committed
Add Support for i18n taxonomy for tags
closes: adityatelange#876
1 parent dc273e1 commit bf5b019

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

layouts/_default/single.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ <h1 class="post-title">
3636
{{- end }}
3737

3838
<footer class="post-footer">
39-
{{- if .Params.tags }}
39+
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
4040
<ul class="post-tags">
41-
{{- range ($.GetTerms "tags") }}
41+
{{- range ($.GetTerms $tags) }}
4242
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
4343
{{- end }}
4444
</ul>
45-
{{- end }}
4645
{{- if (.Param "ShowPostNavLinks") }}
4746
{{- partial "post_nav_links.html" . }}
4847
{{- end }}

0 commit comments

Comments
 (0)