diff options
Diffstat (limited to 'themes/default/layouts/partials/footer.html')
-rw-r--r-- | themes/default/layouts/partials/footer.html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/themes/default/layouts/partials/footer.html b/themes/default/layouts/partials/footer.html index 6cac939..54d6ab1 100644 --- a/themes/default/layouts/partials/footer.html +++ b/themes/default/layouts/partials/footer.html @@ -1,12 +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.authors .Section -}} <footer> - {{- with .Site.Author.footer -}} - {{ if $.IsHome -}} - {{ . | markdownify }} - {{- else -}} - {{ $author.blogtitle }} + {{- if $kind -}} + {{- with $footer := (and $kind .Site.Author.default.footer) -}} + {{ $footer | markdownify }} · + Copyright © {{ now | time.Format "2006"}} · {{- end -}} + {{- else -}} + {{ or $author.footer $author.title | markdownify }} · {{- end }} - | Copyright © {{ now.Format "2006"}} + <a href="/sitemap.xml" >Site Map</a> </footer> |