Files
www-deepwatersurvival-de/layouts/partials/header.html
T
2026-10-19 21:01:31 +02:00

15 lines
666 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{ $current := . -}}
<header class="site-header">
<div class="site-header__inner">
<a class="site-header__logo" href="/" aria-label="Deepwater Survival – Startseite">
<img src="/img/logo-crop.png" alt="Deepwater Survival" width="1600" height="675">
</a>
<nav class="site-nav" aria-label="Hauptnavigation">
{{ range site.Menus.main -}}
{{ $active := or (eq $current.RelPermalink .URL) (and (ne .URL "/") (hasPrefix $current.RelPermalink .URL)) -}}
<a href="{{ .URL }}"{{ if $active }} aria-current="page"{{ end }}>{{ .Name }}</a>
{{ end -}}
</nav>
</div>
</header>