mirror of
https://github.com/zopiya/blog.git
synced 2025-11-03 12:16:46 +08:00
Update Hugo configuration and add footer partial for improved site presentation
This commit is contained in:
10
layouts/partials/footer.html
Normal file
10
layouts/partials/footer.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user