initial commit nouveau design

This commit is contained in:
anael committed 2026-11-15 15:56:30 +01:00
commit 8657f4ccf0
38 files changed
+467

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
<footer class="footer">
<!-- Option for user to inject custom html -->
{{ if .Site.Params.CustomFooterHTML }}
{{ .Site.Params.CustomFooterHTML | safeHTML }}
{{ end }}
{{ .Scratch.Set "footerText" "" }}
{{ if (.Site.Params.Footer) }}
{{ if and (eq .Kind "page") (.Date) }}
{{ .Scratch.Add "footerText" (.Date | time.Format "2006") }}
{{ else }}
{{ .Scratch.Add "footerText" (time.Now | time.Format "2006") }}
{{ end }}
{{ if and (eq .Kind "page") (.Lastmod) (gt (time.Format "2006" .Lastmod) (time.Format "2006" .Date)) }}
{{ .Scratch.Add "footerText" "-" }}
{{ .Scratch.Add "footerText" (.Lastmod | time.Format "2006") }}
{{ end }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Params.Footer }}
{{ if .Site.Copyright }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Copyright }}
{{ end }}
{{ end }}
{{ if (gt (.Scratch.Get "footerText" | len) 0) }}
<span>{{ .Scratch.Get "footerText" | markdownify }}</span>
{{ end }}
</footer>