Add copyright to footer

This commit is contained in:
Christian Weimann
2023-02-04 07:40:27 +01:00
parent 5c0cd66cdb
commit fb7dc333ec

View File

@@ -1,4 +1,19 @@
<div class="footer"> <div class="footer">
{{/* Copyright */}}
{{ if .Site.Params.footer.showCopyright | default true }}
<p class="text-sm text-neutral-500 dark:text-neutral-400">
{{- with .Site.Params.copyright }}
{{ . | emojify | markdownify }}
{{- else }}
&copy;
{{ now.Format "2006" }}
{{ .Site.Author.name | markdownify | emojify }}
{{- end }}
</p>
{{ end }}
{{/* Theme attribution */}}
{{ if .Site.Params.footer.showThemeAttribution | default true }}
Powered by <a href="https://gohugo.io/">Hugo</a> with Powered by <a href="https://gohugo.io/">Hugo</a> with
<a href="https://github.com/mrmierzejewski/hugo-theme-console/">Console Theme</a>. <a href="https://github.com/mrmierzejewski/hugo-theme-console/">Console Theme</a>.
{{ end }}
</div> </div>