add extended footer text (only english so far)

This commit is contained in:
Dominic Reich 2023-06-18 06:50:42 +02:00
parent be7a81b7ce
commit 164b38b222
Signed by: dominic
GPG key ID: BC9D6AE1A3BE169A
2 changed files with 10 additions and 0 deletions

2
i18n/en.yaml Normal file
View file

@ -0,0 +1,2 @@
footer:
running_on: "This website is served on an {{ .OS }} server with {{ .Webserver }}"

View file

@ -0,0 +1,8 @@
<div>
{{ $os := printf `<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://www.openbsd.org/" target="_blank" rel="noopener noreferrer">OpenBSD</a>` }}
{{ $webserver := printf `<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://httpd.apache.org/" target="_blank" rel="noopener noreferrer">Apache httpd</a>` }}
<p class="text-xs text-neutral-500 dark:text-neutral-400">
{{ i18n "footer.running_on" (dict "OS" $os "Webserver" $webserver) | safeHTML }}
</p>
</div>