commit 079b946fd685a9e16520f14cd3e2c1aa6cb7ecd2 parent affe4cced4907e1b6e64e2c66b5285e40918f12c Author: Evan G <fbievan33@protonmail.com> Date: Thu, 13 Jun 2024 13:50:33 -0500 Change Footer logic to account for .Site.Copyright and other methods (#24) * Use License Variable & Format + Footer minimal * Update Footer Logic Diffstat:
M | layouts/partials/footer.html | | | 13 | +++++++++++-- |
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html @@ -1,3 +1,12 @@ -<p><a href="/policies/privacy/">Privacy Policy</a> | <a href="/policies/cookies/">Cookie Policy</a> | <a href="/policies/terms/">Terms of Use</a></p> <!-- We like putting links in a paragraph separated by pipe ("|") characters --> -<p>© 2023 {{ $.Site.Params.author }}</p> <!-- While not legally required, it's nice to put copyright and/or license info here. Also, it looks nice to break up the links with a line of text --> +{{ if .Site.Params.footer.minimal | not }} +<p> + <a href="/policies/privacy/">Privacy Policy</a> | <a href="/policies/cookies/">Cookie Policy</a> | <a href="/policies/terms/">Terms of Use</a> + </p> +{{ end }} + +{{ with .Site.Copyright }} +<p>{{ now.Format "2006" }} © {{ . | markdownify }}</p> +{{ else }} +<p>{{ now.Format "2006" }} © {{ .Site.Params.author }} {{ with .Site.Params.License }} - {{ . | markdownify }} {{ end }} </p> <!-- While not legally required, it's nice to put copyright and/or license info here. Also, it looks nice to break up the links with a line of text --> +{{ end }} <a href={{ $.Site.Params.Mastodon }} rel="me" target="blank">Mastodon</a> | <a href="/contact/">Contact Me</a> | <a href="/posts/index.xml">RSS Feed</a></p> <!-- This is the kind of thing people look for in footers: contact info and legal info. Make sure you include both! -->