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>
This commit is contained in:
Vincent Mahnke 2026-11-09 00:28:00 +01:00
commit cea49f0ab5
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
2 changed files with 53 additions and 42 deletions

View file

@ -1,6 +1,14 @@
{{- /* Overrides the zen theme's footer.html. Same as the theme's, plus the 40C3 logo. */ -}}
{{- /* 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 }}

View file

@ -1,6 +1,6 @@
{{ partial "head/fonts.html" . }}
{{- /* Browser UI colours, the same as the page backgrounds in assets/css/_custom.css. */ -}}
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ebedf0">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#dff0d4">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#001300">
{{- /*
Open Graph image for link previews. The theme's head/meta.html writes og:image only for the