hackertours/layouts/_partials/menu.html
Vincent Mahnke a7664c9168
feat: Applies 40c3 style to website
Rebased onto main after the bottom navigation bar (#68). Main's markup and behaviour win; this commit only contributes the 40c3 look.

- Jersey 10 and Hack fonts, the 40c3 palette and light/dark schemes, theme-color metas, web manifest and the 40c3 logo/footer.
- Header: site name as green chip; nav row with the language switch as amber chip. The tagline stays out of the header, as in main.
- Mobile (up to 666px): main's bottom navigation bar is kept and restyled (2px borders and dividers, current page green, language switch amber, visible keyboard focus). The old button-and-sheet styling is dropped.
- Start pages: 40C3 heading; stale commented-out 39C3 block removed.
- layouts/home-baseof.html removed; it was identical to baseof.html.
- Removed the leftover 'h2 a' margin that made the news list 2px wider than a 390px viewport.
- README: describe the bottom navigation bar.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-13 16:41:08 +01:00

16 lines
819 B
HTML

{{- /* 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" }}">
<ul class="flex-inline mx--0">
{{ $currentPage := . -}}
{{ range site.Menus.main -}}
<li><a href="{{ .URL }}"{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} aria-current="page"{{ end }}>{{ .Pre }}<span>{{ or (i18n .Identifier) .Name | safeHTML }}</span>{{ .Post }}</a></li>
{{ end -}}
</ul>
</nav>
<div class="region header__region">{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end }}</div>
</div>
</div>