i18n: update i18n string format (#371)

This commit is contained in:
Dillon
2020-05-18 16:10:24 +08:00
committed by GitHub
parent 36f59a72ee
commit 9c1244490f
35 changed files with 236 additions and 284 deletions

View File

@@ -12,7 +12,7 @@
{{- else if eq $taxonomy "tag" -}}
<i class="fas fa-tag fa-fw"></i>&nbsp;{{ .Title }}
{{- else -}}
{{- printf "%s - %s" (T $taxonomy | default $taxonomy) .Title -}}
{{- printf "%v - %v" (T $taxonomy | default $taxonomy) .Title -}}
{{- end -}}
</h2>
@@ -32,7 +32,7 @@
{{- .Title -}}
</a>
<span class="archive-item-date">
{{- .Date.Format ($.Site.Params.list.dateFormat | default "01-02") -}}
{{- $.Site.Params.list.dateFormat | default "01-02" | .Date.Format -}}
</span>
</article>
{{- end -}}