hackertours/layouts/_partials/footer.html
Vincent Mahnke 0a415a4958
feat: Takes over the 40C3 startpage's background and headings
Light green background (#dff0d4), which is also the text colour in the
dark scheme. Page titles and the site name are capitals like the
startpage's h1, and section headings are green boxes like its
"GET INFORMED", so the home page's 40C3 heading is now an h2.
The EH22 logo credit moves to the footer.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-09 00:28:00 +01:00

14 lines
1.2 KiB
HTML

{{- /* Overrides the zen theme's footer.html. Same as the theme's, plus the 40C3 logo and, on pages
with event cards, the credits for event logos whose licence asks for one (credit in data/events.yaml). */ -}}
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
<p class="footer__event">{{ partial "logo-40c3.html" (dict "class" "footer__logo") }}</p>
<p>{{ with site.Copyright }}{{ . | site.Home.RenderString }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
{{- if .HasShortcode "events" }}
{{- $credits := slice }}
{{- with hugo.Data.events }}{{ range .events }}{{ if .credit }}{{ $credits = $credits | append (dict "name" (.name | default (upper .event)) "credit" .credit) }}{{ end }}{{ end }}{{ end }}
{{- with $credits }}
<p>{{ range $index, $entry := . }}{{ if $index }} · {{ end }}{{ i18n "events_logo" (dict "Name" $entry.name) }}: {{ $entry.credit | site.Home.RenderString }}{{ end }}</p>
{{- end }}
{{- end }}
{{ with $.Param "footer" }}<p>{{ . | site.Home.RenderString }}</p>{{ end }}
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}