diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-13 10:40:35 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-13 10:40:35 -0500 |
| commit | b2440836ad13d489a3a0097df603e257adb079e4 (patch) | |
| tree | 49f6788424759d0814db83b5c7b58710bfbf934c /layouts/_partials/copyright.html | |
| parent | 7b31aa7a786d254d2a2a6e4afd93dbe426816874 (diff) | |
| download | samanthony.xyz-b2440836ad13d489a3a0097df603e257adb079e4.zip | |
add last modified date to footer
Diffstat (limited to 'layouts/_partials/copyright.html')
| -rw-r--r-- | layouts/_partials/copyright.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/_partials/copyright.html b/layouts/_partials/copyright.html new file mode 100644 index 0000000..0fed830 --- /dev/null +++ b/layouts/_partials/copyright.html @@ -0,0 +1,11 @@ +{{- $oldest := (index .Site.RegularPages.ByDate 0).Date.Year }} +{{- $newest := (index .Site.Pages.ByLastmod.Reverse 0).Lastmod.Year }} +{{- if gt $newest $oldest }} + Copyright {{ $oldest }}–{{ $newest }} +{{- else }} + Copyright {{ $newest }} +{{- end }} +{{- with .Site.Params.author.name -}} + , {{ . }} +{{- end -}} +. |