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

@@ -1,12 +1,12 @@
{{- define "title" }}
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) }} - {{ .Site.Title -}}
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}
<div class="page archive">
{{- /* Title */ -}}
<h2 class="single-title animated pulse faster">
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) -}}
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" -}}
</h2>
{{- /* Paginate */ -}}
@@ -25,7 +25,7 @@
{{- .Title -}}
</a>
<span class="archive-item-date">
{{- .Date.Format ($.Site.Params.section.dateFormat | default "01-02") -}}
{{- $.Site.Params.section.dateFormat | default "01-02" | .Date.Format -}}
</span>
</article>
{{- end -}}