💄 Add version info of Hugo & NexT theme in footer.

This commit is contained in:
凡梦星尘 2022-09-30 21:04:25 +08:00
parent 7592b211c1
commit 4be573b5d3
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
<div class="custom-footer"> <div class="custom-footer">
Website source code <a href="https://github.com/hugo-next/hugo-theme-next/tree/develop/exampleSite/layouts/partials/custom-footer.html" target="_blank">here</a> Website source code <a href="https://github.com/hugo-next/hugo-theme-next/blob/develop/exampleSite/layouts/partials/custom_footer.html" target="_blank">here</a>
</div> </div>

View File

@ -52,7 +52,7 @@
{{- end }} {{- end }}
{{- if $ft.powered }} {{- if $ft.powered }}
<div class="powered-by"> <div class="powered-by">
{{ $pb := printf "<a href='https://gohugo.io' target='_blank'>Hugo</a> &amp; <a href='https://github.com/hugo-next/hugo-theme-next' target='_blank'>Hugo NexT.%s</a>" .Site.Params.scheme }} {{ $pb := printf "<a href='https://gohugo.io' title='%s' target='_blank'>Hugo</a> &amp; <a href='https://github.com/hugo-next/hugo-theme-next' title='%s' target='_blank'>Hugo NexT.%s</a>" hugo.Version .Site.Data.config.version .Site.Params.scheme }}
{{- printf (T "FooterPowerby") $pb | safeHTML }} {{- printf (T "FooterPowerby") $pb | safeHTML }}
</div> </div>
{{- end }} {{- end }}