custom: Add new footer template and context

This commit is contained in:
Tom Wiesing 2023-01-06 19:56:13 +01:00
parent 009d649ea6
commit bda763725e
No known key found for this signature in database
18 changed files with 197 additions and 33 deletions

View file

@ -2,7 +2,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta charset="utf-8">
<title>{{ block "block" . }}WissKI Distillery{{ end }}</title>
{{ block "styles" . }}styles{{ end }}
@ -24,11 +24,15 @@
</div>
</main>
{{ if .Time }}
<footer>
Generated at <code>{{ .Time }}</code>
{{ if .Time }}
Generated at <code>{{ .Time }}</code>
{{ end }}
{{ block "footer" . }}
<!-- no footer by default -->
{{ end }}
</footer>
{{ end }}
{{ block "scripts" . }}scripts{{ end }}
</body>