fix: Restores header layout and uses 40C3 page colours for light theme

- Light scheme: background #ebedf0 and text #001300, the colours the 40C3 info
  pages (events.ccc.de/congress/2026/infos) use. Their black link boxes and
  per-level heading colours are not copied; links, headings and chips follow the
  styleguide as before. The theme-color metas, the web manifest and the footer
  logo use the same colours.
- Menu: the four entries are full-width buttons in a row below the header again
  (outlined like the styleguide's quiet chips; the current page, hover and
  focus are filled green).
- Language link: back on the right of the header instead of in the menu bar.
  layouts/baseof.html, layouts/_partials/menu.html and layouts/home-baseof.html
  are main's again, so the theme only adds files under layouts/.
- README: the language switch is in the header, not in the menu.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Vincent Mahnke 2026-11-08 11:49:58 +01:00
commit 454d7fbd7e
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
4 changed files with 83 additions and 41 deletions

View file

@ -1,5 +1,5 @@
{{- /* Browser UI colours, the same as the page backgrounds in assets/css/_custom.css. */ -}}
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#e2eed6">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ebedf0">
<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

View file

@ -1,9 +1,4 @@
{{- /* Nav row: the main menu, and the language switch on the right.
On small screens the theme's mobilemenu.js hides .main-menu and .header__region, and the
bottom bar (mobilemenu.html) takes over both. */ -}}
<div class="nav-bar mx--xs layout__navigation">
<div class="nav-bar__row">
<nav class="main-menu" aria-label="{{ i18n "menu_title" }}">
<nav class="main-menu{{ if not ($.Param "menuinheader") }} mx--xs layout__navigation{{ end }}" aria-label="{{ i18n "menu_title" }}">
<ul class="flex-inline mx--0">
{{ $currentPage := . -}}
{{ range site.Menus.main -}}
@ -11,6 +6,3 @@ bottom bar (mobilemenu.html) takes over both. */ -}}
{{ end -}}
</ul>
</nav>
<div class="region header__region">{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end }}</div>
</div>
</div>

View file

@ -30,9 +30,13 @@
<h1 class="header__site-name">
<a href="{{ site.Home.RelPermalink }}" rel="home" class="header__site-link">{{ site.Title }}</a>
</h1>
<div class="region header__region">
{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end -}}
{{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}}
</div>
</header>
{{ partial "menu.html" . }}
{{ if not ($.Param "menuinheader") }}{{ partial "menu.html" . }}{{ end -}}
{{ if $.Param "mobilemenu" }}{{ partial "mobilemenu.html" . }}{{ end -}}
<div id="main-content" tabindex="-1"></div>

54
layouts/home-baseof.html Normal file
View file

@ -0,0 +1,54 @@
{{ partial "lint-brand.html" . }}
<!DOCTYPE html>
<html class="nojs" lang="{{ site.Language.Locale | default site.Language.Name }}" dir="{{ site.Language.Direction | default "ltr" }}"{{ with $.Param "colorScheme" }} data-theme="{{ . }}"{{ end }}>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ block "title" . }}{{ .Title }} – {{ site.Title }}{{ end }}</title>
{{ partial "head/meta.html" . }}
{{ partialCached "head/favicons.html" . }}
{{ partialCached "head/styles.html" . }}
{{ partial "head/meta-json-ld.html" . }}
{{ partial "head/scripts.html" . }}
{{ partial "head/math.html" . }}
{{ partialCached "head/tracking.html" . }}
{{ partial "head/extra.html" . }}
{{ block "head" . }}{{ end }}
{{ if .HasShortcode "schedule" }}{{ partial "schedule-script.html" . }}{{ end }}
{{ if .HasShortcode "gallery" }}{{ partial "gallery-script.html" . }}{{ end }}
</head>
<body class="{{ if .IsPage }}single-page{{ else }}list-page{{ end }}{{ if .IsHome }} front{{ end }}{{ with .Section }} section-page--{{ . | urlize }}{{ end }}{{ with $.Param "bodyclass" }} {{ . }}{{ end }}">
<a class="skip-link visually-hidden" href="#main-content">{{ i18n "skip_to_content" }}</a>
<div class="page layout__page{{ if $.Param "sidebar" }} layout__sidebar-second{{ end }}">
<header class="header layout__header">
{{ if $.Param "logo" | default true -}}
<a href="{{ site.Home.RelPermalink }}" rel="home" class="header__logo">
<img src="{{ with $.Param "logopath" }}{{ . | relURL }}{{ else }}{{ "images/logo.png" | relURL }}{{ end }}"{{ with $.Param "logowidth" }} width="{{ . }}"{{ end }}{{ with $.Param "logoheight" }} height="{{ . }}"{{ end }} alt="{{ i18n "logo_alt" }}" class="header__logo-image">
</a>
{{ end -}}
<h1 class="header__site-name">
<a href="{{ site.Home.RelPermalink }}" rel="home" class="header__site-link">{{ site.Title }}</a>
</h1>
<div class="region header__region">
{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end -}}
{{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}}
</div>
</header>
{{ if not ($.Param "menuinheader") }}{{ partial "menu.html" . }}{{ end -}}
{{ if $.Param "mobilemenu" }}{{ partial "mobilemenu.html" . }}{{ end -}}
<div id="main-content" tabindex="-1"></div>
{{ block "main" . }}{{ end }}
{{ if $.Param "sidebar" }}{{ partial "sidebar.html" . }}{{ end -}}
<footer class="footer layout__footer mt--l">
{{ partial "footer.html" . }}
</footer>
{{ if $.Param "cookieconsent" }}{{ partialCached "cookieconsent.html" . }}{{ end -}}
</div>
</body>
</html>