Update Hugo configuration and add footer partial for improved site presentation

This commit is contained in:
2025-03-28 21:19:42 +08:00
parent bdbf80f564
commit e3ceb1bb10
2 changed files with 24 additions and 16 deletions

View File

@@ -0,0 +1,10 @@
{{ $showFooter := default true .Site.Params.showFooter }}
{{ if $showFooter }}
{{ if not .Site.Params.footerContent }}
<p>© {{ now.Format "2006" }} {{ .Site.Title }}. All rights reserved.</p>
{{ end }}
{{ with .Site.Params.footerContent }}
<p>{{ . | markdownify }}</p>
{{ end }}
{{ end }}