diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/init.html | 2 | ||||
-rw-r--r-- | layouts/partials/single/footer.html | 6 |
3 files changed, 5 insertions, 5 deletions
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 -}} <div class="footer-line"> {{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo %s">Hugo</a>` hugo.Version -}} - {{- printf (T "poweredBySome") $hugo | safeHTML }} | {{ T "theme" }} - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt {{ .Scratch.Get `version` }}"><i class="far fa-kiss-wink-heart fa-fw"></i> LoveIt</a> + {{- $hugo | string | printf (T "poweredBySome" | string) | safeHTML }} | {{ T "theme" }} - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt {{ .Scratch.Get `version` }}"><i class="far fa-kiss-wink-heart fa-fw"></i> LoveIt</a> </div> {{- 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 @@ <div class="post-info-line"> <div class="post-info-mod"> <span> - {{- printf (T "lastMod") $modify_date -}} + {{- $modify_date | string | printf (T "lastMod" | string) -}} {{- if .Site.Params.gitRepo -}} {{- with .GitInfo -}} <a class="git-hash" href="{{ printf `%s/commit/%s` $.Site.Params.gitRepo .Hash }}" target="_blank" title="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ .Hash }}: {{ .Subject }}"> @@ -17,9 +17,9 @@ </span> </div> <div class="post-info-license"> - {{- with $params.license -}} + {{- with $params.license | string -}} <span> - {{- printf (T "license") . | safeHTML -}} + {{- printf (T "license" | string) . | safeHTML -}} </span> {{- end -}} </div> |