From 079b946fd685a9e16520f14cd3e2c1aa6cb7ecd2 Mon Sep 17 00:00:00 2001 From: Evan G Date: Thu, 13 Jun 2024 13:50:33 -0500 Subject: [PATCH] Change Footer logic to account for .Site.Copyright and other methods (#24) * Use License Variable & Format + Footer minimal * Update Footer Logic --- layouts/partials/footer.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0a7a6c5..cf46ab0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,12 @@ -

Privacy Policy | Cookie Policy | Terms of Use

-

© 2023 {{ $.Site.Params.author }}

+{{ if .Site.Params.footer.minimal | not }} +

+ Privacy Policy | Cookie Policy | Terms of Use +

+{{ end }} + +{{ with .Site.Copyright }} +

{{ now.Format "2006" }} © {{ . | markdownify }}

+{{ else }} +

{{ now.Format "2006" }} © {{ .Site.Params.author }} {{ with .Site.Params.License }} - {{ . | markdownify }} {{ end }}

+{{ end }} Mastodon | Contact Me | RSS Feed