summaryrefslogtreecommitdiffstats
path: root/themes/aoidh/layouts/_partials/footer.html
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-01-02 11:48:42 -0330
committerSam Anthony <sam@samanthony.xyz>2026-01-02 11:48:42 -0330
commitf270250fbbf728611119e35d7703e0a96ca0fef0 (patch)
tree51fb102d74964b7dab718122c4cfe88efb796ef8 /themes/aoidh/layouts/_partials/footer.html
parentdf32f24091f1cda49df6b417833301886c1a541f (diff)
downloadsamanthony.xyz-f270250fbbf728611119e35d7703e0a96ca0fef0.zip
copyright year range in footer; styling
Diffstat (limited to 'themes/aoidh/layouts/_partials/footer.html')
-rw-r--r--themes/aoidh/layouts/_partials/footer.html18
1 files changed, 15 insertions, 3 deletions
diff --git a/themes/aoidh/layouts/_partials/footer.html b/themes/aoidh/layouts/_partials/footer.html
index 316a707..91d4a34 100644
--- a/themes/aoidh/layouts/_partials/footer.html
+++ b/themes/aoidh/layouts/_partials/footer.html
@@ -1,5 +1,17 @@
-<p>Copyright {{ now.Year }}
-{{- if .Site.Params.author.name -}}
- , {{ .Site.Params.author.name }}
+<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 -}}&ndash;{{- $lastMod.Year -}}
+ {{- else -}}
+ Copyright {{ $epoch.Year -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+{{- with .Site.Params.author.name -}}
+ , {{ . }}
{{- end -}}
. All rights reserved.</p>