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 - id: home
translation: "الصفحة الرئيسية" translation: "الصفحة الرئيسية"
- id: tags
translation: "العلامات"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,4 +25,7 @@
translation: "کپی" translation: "کپی"
- id: code_copied - id: code_copied
translation: "کپی شد!" translation: "کپی شد!"
- id: tags
translation: "برچسب ها"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -20,4 +20,7 @@
translation: "копировать" translation: "копировать"
- id: code_copied - id: code_copied
translation: "скопировано!" translation: "скопировано!"
- id: tags
translation: "теги"

View File

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

View File

@ -22,4 +22,7 @@
translation: "копіювати" translation: "копіювати"
- id: code_copied - id: code_copied
translation: "скопійовано!" translation: "скопійовано!"
- id: tags
translation: "теги"

View File

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

View File

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

View File

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

View File

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

View File

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