aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/base-footer.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/base-footer.html')
-rw-r--r--themes/default/layouts/partials/base-footer.html12
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 }} &middot;
+ {{- if $kind -}}
+ {{- with $footer := (and $kind .Site.Author.default.footer) -}}
+ {{ $footer | markdownify }} &middot;
Copyright &copy; {{ now | time.Format "2006"}} &middot;
- {{- else -}}
- {{ or $author.footer $author.title | markdownify }} &middot;
{{- end -}}
+ {{- else -}}
+ {{ or $author.default.footer $author.title | markdownify }} &middot;
{{- end }}
<a href="/sitemap.xml" >Site Map</a>
</footer>