diff options
Diffstat (limited to 'themes/aoidh/layouts/_partials/footer.html')
| -rw-r--r-- | themes/aoidh/layouts/_partials/footer.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/aoidh/layouts/_partials/footer.html b/themes/aoidh/layouts/_partials/footer.html new file mode 100644 index 0000000..91d4a34 --- /dev/null +++ b/themes/aoidh/layouts/_partials/footer.html @@ -0,0 +1,17 @@ +<hr> +<p> +{{- with index (sort .Site.RegularPages "Date" "asc") 0 -}} + {{ $epoch := .Date }} + {{- with index (sort .Site.Pages "Lastmod" "desc") 0 -}} + {{ $lastMod := .Lastmod }} + {{- if gt $lastMod.Year $epoch.Year -}} + Copyright {{ $epoch.Year -}}–{{- $lastMod.Year -}} + {{- else -}} + Copyright {{ $epoch.Year -}} + {{- end -}} + {{- end -}} +{{- end -}} +{{- with .Site.Params.author.name -}} + , {{ . }} +{{- end -}} +. All rights reserved.</p> |