Add i18n chinese translation

This commit is contained in:
canstand
2021-09-20 11:24:28 +08:00
parent 4eb4ae4493
commit 962a4875ee
4 changed files with 43 additions and 18 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
{{ end }}
{{ if and .Draft .Site.Params.article.showDraftLabel }}
<div class="ml-2">
{{ partial "badge.html" "Draft" }}
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
</div>
{{ end }}
{{ if templates.Exists "partials/extend-article-link.html" }}
+8 -16
View File
@@ -12,22 +12,14 @@
{{/* Theme attribution */}}
{{ if .Site.Params.attribution | default true }}
<p class="text-xs text-neutral-300 dark:text-neutral-600">
{{ i18n "footer.powered_by" }}
<a
class="hover:underline hover:underline-primary-300 hover:text-primary-400"
href="https://gohugo.io/"
target="_blank"
rel="noopener noreferrer"
>Hugo</a
>
&amp;
<a
class="hover:underline hover:underline-primary-300 hover:text-primary-400"
href="https://git.io/hugo-congo"
target="_blank"
rel="noopener noreferrer"
>Congo</a
>
{{ $hugo := printf `<a class="hover:underline hover:underline-primary-300 hover:text-primary-400"
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a>
&amp;
<a class="hover:underline hover:underline-primary-300 hover:text-primary-400" href="https://git.io/hugo-congo"
target="_blank" rel="noopener noreferrer">Congo</a>`
}}
{{ i18n "footer.powered_by" (dict "Hugo" $hugo) | safeHTML }}
</p>
{{ end }}
{{/* Extend footer - eg. for extra scripts, etc. */}}