diff options
author | tdro <tdro@noreply.example.com> | 2023-07-18 19:58:58 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-07-18 19:59:52 -0400 |
commit | bd81f76dca64b24036153df07176eb621deba854 (patch) | |
tree | c4b015ce7cd0754424fab77da3b15ee3c5944031 /themes/default/layouts/partials | |
parent | 326a031fd503861e03983810f564d61ba41d55c9 (diff) | |
download | canory-bd81f76dca64b24036153df07176eb621deba854.tar.gz canory-bd81f76dca64b24036153df07176eb621deba854.tar.bz2 canory-bd81f76dca64b24036153df07176eb621deba854.zip |
themes/default/layouts/partials/base-footer: Allow author setting footer
Target the right kinds
Diffstat (limited to 'themes/default/layouts/partials')
-rw-r--r-- | themes/default/layouts/partials/base-footer.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/themes/default/layouts/partials/base-footer.html b/themes/default/layouts/partials/base-footer.html index f24b8d6..a29ff93 100644 --- a/themes/default/layouts/partials/base-footer.html +++ b/themes/default/layouts/partials/base-footer.html @@ -1,13 +1,14 @@ -{{ $author := index .Site.Data ((or .Params.author .Site.Author.default.footer) | default "default") }} +{{- $kind := in (slice "home" "taxonomy" "term") .Page.Kind -}} +{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.footer) | default "default") -}} <footer> {{- with .Site.Author.footer -}} - {{ if $.IsHome -}} - {{ . | markdownify }} + {{- if $kind -}} + {{ . | markdownify }} · + Copyright © {{ now.Format "2006"}} · {{- else -}} - {{ $author.title }} + {{ or $author.footer $author.title | markdownify }} · {{- end -}} {{- end }} - · Copyright © {{ now.Format "2006"}} - · <a href="/sitemap.xml" >Site Map</a> + <a href="/sitemap.xml" >Site Map</a> </footer> |