diff options
Diffstat (limited to 'themes/default/layouts/partials/base-footer.html')
-rw-r--r-- | themes/default/layouts/partials/base-footer.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/default/layouts/partials/base-footer.html b/themes/default/layouts/partials/base-footer.html index 53b3b2f..3873153 100644 --- a/themes/default/layouts/partials/base-footer.html +++ b/themes/default/layouts/partials/base-footer.html @@ -1,14 +1,14 @@ {{- $kind := in (slice "home" "taxonomy" "term") .Page.Kind -}} -{{- $author := index .Site.Data ((or .Section .Site.Author.default.footer) | default "default") -}} +{{- $author := index .Site.Data .Section -}} <footer> - {{- with .Site.Author.footer -}} - {{- if $kind -}} - {{ . | markdownify }} · + {{- if $kind -}} + {{- with $footer := (and $kind .Site.Author.default.footer) -}} + {{ $footer | markdownify }} · Copyright © {{ now | time.Format "2006"}} · - {{- else -}} - {{ or $author.footer $author.title | markdownify }} · {{- end -}} + {{- else -}} + {{ or $author.default.footer $author.title | markdownify }} · {{- end }} <a href="/sitemap.xml" >Site Map</a> </footer> |