hugo-page/themes/tsc_vfl/layouts/partials/page/header.html
Christian Wolf ab85eb9dc7
Offload banner generation into dedicated partial
Signed-off-by: Christian Wolf <github@christianwolf.email>
2024-11-16 15:33:45 +01:00

34 lines
1.3 KiB
HTML

<div id="header">
<div class="logo-row">
<a href="/" class="logo">
<img src="{{ relURL "img/logo.jpg" }}">
</a>
<a href="https://www.vfl-sindelfingen.de/" class="logo-vfl">
<img src="{{ relURL "img/logo_vfl.gif" }}">
</a>
</div>
<div class="slider">
{{ partial "page/banner-images.html" . }}
</div>
<div id="nav-border" class="container nav">
<nav id="nav" class="nav justify-content-center">
{{ range .Site.Menus.main }}
<a class="nav-link{{ if or
($.Page.IsMenuCurrent "main" .)
($.Page.HasMenuCurrent "main" .)
(and (eq $.Page.Type "news") (eq .Identifier "aktuell") )
(and (eq $.Page.Type "turniermeldung") (eq .Identifier "aktuell") )
}} active{{ end }}" href="{{ .URL }}">
{{/*{{ if .Pre }}
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}
{{ $icon }}
{{ end }}*/}}
{{ $text := print .Name | safeHTML }}
{{ $text }}
</a>
{{ end }}
</nav>
</div>
<a class="mobile-menu-link" href="#mobile-menu">Menu</a>
</div>