From acef6c143ed743415c194808f3e471edbe72a307 Mon Sep 17 00:00:00 2001 From: Dillon Date: Sat, 16 May 2020 00:46:51 +0800 Subject: [PATCH] fix(format): string format error (#366) --- layouts/_default/section.html | 4 ++-- layouts/partials/footer.html | 2 +- layouts/partials/init.html | 2 +- layouts/partials/single/footer.html | 6 +++--- layouts/posts/rss.xml | 4 ++-- layouts/taxonomy/terms.html | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 9d07c92..a743ca9 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -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" -}}
{{- /* Title */ -}}

- {{- .Params.Title | default (T .Section) | default .Section | printf (T "allSome") -}} + {{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) -}}

{{- /* Paginate */ -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 533789c..737c9b3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -12,7 +12,7 @@ {{- if ne .Site.Params.footer.hugo false -}} {{- end -}} diff --git a/layouts/partials/init.html b/layouts/partials/init.html index c5b2825..508d74d 100644 --- a/layouts/partials/init.html +++ b/layouts/partials/init.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "0.2.8" -}} +{{- .Scratch.Set "version" "0.2.9" -}} {{- /* LoveIt theme version detection */ -}} {{- $VERSION := "0.2.X" -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index 8e28018..303d70d 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -6,7 +6,7 @@