fix(format): string format error (#366)

This commit is contained in:
Dillon
2020-05-16 00:46:51 +08:00
committed by GitHub
parent 8a2bb03e5f
commit acef6c143e
6 changed files with 11 additions and 11 deletions

View File

@@ -1,12 +1,12 @@
{{- define "title" }}
{{- .Params.Title | default (T .Section) | default .Section | printf (T "allSome") }} - {{ .Site.Title -}}
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) }} - {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}
<div class="page archive">
{{- /* Title */ -}}
<h2 class="single-title animated pulse faster">
{{- .Params.Title | default (T .Section) | default .Section | printf (T "allSome") -}}
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) -}}
</h2>
{{- /* Paginate */ -}}