diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-10 12:31:51 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-10 12:31:51 -0500 |
| commit | c7009f0eb01628fb0ff52351a3e75a4aeb164e8e (patch) | |
| tree | c1a2f68c05689740c9dec3a49049f0569812a9e3 | |
| parent | 94ec008558ec992497c27d6d198441f4268bbfef (diff) | |
| download | samanthony.xyz-c7009f0eb01628fb0ff52351a3e75a4aeb164e8e.zip | |
link to hugo, freedns, and site source code in footer
| -rw-r--r-- | content/projects/index.md | 2 | ||||
| -rw-r--r-- | layouts/_partials/footer.html | 24 | ||||
| -rw-r--r-- | themes/aoidh/layouts/_partials/footer.html | 17 |
3 files changed, 26 insertions, 17 deletions
diff --git a/content/projects/index.md b/content/projects/index.md index f021a61..2d072f9 100644 --- a/content/projects/index.md +++ b/content/projects/index.md @@ -6,3 +6,5 @@ draft = false +++ Browse source code at [git.samanthony.xyz](https://git.samanthony.xyz/). + +Mirrored at [github.com/sam-rba](https://github.com/sam-rba/). diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html new file mode 100644 index 0000000..e3699e0 --- /dev/null +++ b/layouts/_partials/footer.html @@ -0,0 +1,24 @@ +<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> +<p> + Powered by + <a href="https://gohugo.io/">Hugo</a> and + <a href="https://freedns.afraid.org/">Free DNS</a>. + <a class="button" href="https://git.samanthony.xyz/samanthony.xyz/">Source code →</a> +</p> diff --git a/themes/aoidh/layouts/_partials/footer.html b/themes/aoidh/layouts/_partials/footer.html deleted file mode 100644 index 91d4a34..0000000 --- a/themes/aoidh/layouts/_partials/footer.html +++ /dev/null @@ -1,17 +0,0 @@ -<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> |