Fix multilingual tags not showing correctly in posts

This commit is contained in:
AidenKitamura 2022-03-04 17:58:58 +08:00
parent 43c810c3e2
commit e70d29f5ed
27 changed files with 83 additions and 6 deletions

View File

@ -20,3 +20,6 @@
- id: home
translation: "الصفحة الرئيسية"
- id: tags
translation: "العلامات"

View File

@ -14,3 +14,6 @@
- id: translations
translation: "Преводи"
- id: tags
translation: "етикети"

View File

@ -17,3 +17,6 @@
- id: home
translation: "Inici"
- id: tags
translation: "Etiquetes"

View File

@ -26,3 +26,6 @@
- id: code_copied
translation: "kopieret!"
- id: tags
translation: "tags"

View File

@ -31,3 +31,6 @@
- id: code_copied
translation: "Kopiert!"
- id: tags
translation: "Stichworte"

View File

@ -23,3 +23,6 @@
- id: code_copied
translation: "kopiite!"
- id: tags
translation: "etikedoj"

View File

@ -31,3 +31,6 @@
- id: code_copied
translation: "¡copiado!"
- id: tags
translation: "etiquetas"

View File

@ -26,3 +26,6 @@
- id: code_copied
translation: "کپی شد!"
- id: tags
translation: "برچسب ها"

View File

@ -31,3 +31,6 @@
- id: code_copied
translation: "copié!"
- id: tags
translation: "Mots clés"

View File

@ -17,3 +17,6 @@
- id: home
translation: "דף בית"
- id: tags
translation: "תגים"

View File

@ -14,3 +14,6 @@
- id: translations
translation: "अनुवाद"
- id: tags
translation: "टैग"

View File

@ -14,3 +14,6 @@
- id: translations
translation: "Fordítások"
- id: tags
translation: "Címkéket"

View File

@ -14,3 +14,6 @@
- id: translations
translation: "Terjemahan"
- id: tags
translation: "Tag"

View File

@ -25,3 +25,6 @@
- id: code_copied
translation: "copiato!"
- id: tags
translation: "tag"

View File

@ -14,3 +14,6 @@
- id: translations
translation: "言語"
- id: tags
translation: "タグ"

View File

@ -23,3 +23,6 @@
- id: code_copied
translation: "복사완료!"
- id: tags
translation: "태그"

View File

@ -23,3 +23,6 @@
- id: code_copied
translation: "хуулсан!"
- id: tags
translation: "шошго"

View File

@ -26,3 +26,6 @@
- id: code_copied
translation: "Skopiowano!"
- id: tags
translation: "Tagi"

View File

@ -19,3 +19,6 @@
- id: translations
translation: "Traduções"
- id: tags
translation: "Tag"

View File

@ -21,3 +21,6 @@
- id: code_copied
translation: "скопировано!"
- id: tags
translation: "теги"

View File

@ -23,3 +23,6 @@
- id: code_copied
translation: "Kopyalandı!"
- id: tags
translation: "Etiketler"

View File

@ -23,3 +23,6 @@
- id: code_copied
translation: "скопійовано!"
- id: tags
translation: "теги"

View File

@ -18,3 +18,5 @@
- id: home
translation: "Bosh sahifa"
- id: tags
translation: "Teglar"

View File

@ -23,3 +23,6 @@
- id: code_copied
translation: "Đã sao chép!"
- id: tags
translation: "thẻ"

View File

@ -26,3 +26,6 @@
- id: code_copied
translation: "已複製!"
- id: tags
translation: "標籤"

View File

@ -26,3 +26,6 @@
- id: code_copied
translation: "已复制!"
- id: tags
translation: "标签"

View File

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