2023-05-17 10:43:39 +02:00
|
|
|
{{ $.Scratch.Set "counter" 0 }}
|
|
|
|
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
|
|
|
|
|
2023-05-17 09:30:00 +02:00
|
|
|
<header>
|
|
|
|
<div class="header-content">
|
|
|
|
|
2023-05-20 19:59:58 +02:00
|
|
|
{{ $logoresource := resources.Get (.Site.Params.logoNormal | replaceRE "^/" "") }}
|
|
|
|
|
2023-05-29 19:27:52 +02:00
|
|
|
<a href="{{ "/" | relLangURL }}" class="logo" title="Terug naar hoofdpagina"><img class="max-width" src="{{ $logoresource | relURL }}" alt="NLUUG-logo" width="{{ $logoresource.Width }}" height="{{ $logoresource.Height }}"></a>
|
2023-05-17 09:30:00 +02:00
|
|
|
|
|
|
|
<input type="checkbox" id="hamburger" aria-label="menu button">
|
|
|
|
<label for="hamburger"><span></span></label>
|
|
|
|
|
2023-05-20 19:59:58 +02:00
|
|
|
<nav aria-label="Main navigation">
|
2023-05-17 09:30:00 +02:00
|
|
|
|
|
|
|
<ul class="menus menu">
|
|
|
|
{{ $currentPage := . }}
|
|
|
|
{{ range .Site.Menus.main }}
|
2023-05-22 11:46:34 +02:00
|
|
|
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
|
2023-05-17 11:43:44 +02:00
|
|
|
{{ if .Children }}
|
2023-05-17 09:30:00 +02:00
|
|
|
<li>
|
2023-05-22 11:46:34 +02:00
|
|
|
<button type="button" aria-haspopup="true" aria-expanded="true" aria-controls="dropdown-{{ $.Scratch.Get "counter" }}" aria-labelledby="button-link-{{ $.Scratch.Get "counter" }}"></button>
|
2023-05-29 16:26:40 +02:00
|
|
|
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ or (T .Identifier) .Name | strings.FirstUpper | safeHTML }}</a>
|
2023-05-20 19:59:58 +02:00
|
|
|
<ul class="dropdown" id="dropdown-{{ $.Scratch.Get "counter" }}">
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ range .Children }}
|
2023-05-29 16:26:40 +02:00
|
|
|
<li><a href="{{ .URL }}">{{ or (T .Identifier) .Name | strings.FirstUpper | safeHTML }}</a></li>
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{{ else }}
|
2023-05-21 16:21:00 +02:00
|
|
|
<li>
|
2023-05-22 11:46:34 +02:00
|
|
|
<button type="button" aria-haspopup="true" aria-expanded="true" aria-labelledby="button-link-{{ $.Scratch.Get "counter" }}"></button>
|
2023-05-29 16:26:40 +02:00
|
|
|
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ or (T .Identifier) .Name | strings.FirstUpper | safeHTML }}</a>
|
2023-05-21 16:21:00 +02:00
|
|
|
</li>
|
2023-05-17 09:30:00 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2023-05-21 16:21:00 +02:00
|
|
|
<li>
|
2023-05-29 16:26:40 +02:00
|
|
|
{{ $search := safeHTML (strings.FirstUpper (i18n "search")) }}
|
|
|
|
<button type="button" aria-haspopup="false" aria-expanded="true" aria-label="{{ $search }}"></button>
|
|
|
|
<a href="{{ relLangURL "/zoeken/" }}">
|
|
|
|
{{ partial "show-svg-icon.html" (dict "context" . "icon" "magnifying-glass" "title" $search) }}
|
|
|
|
</a>
|
2023-05-21 16:21:00 +02:00
|
|
|
</li>
|
2023-05-17 09:30:00 +02:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2023-05-05 16:36:10 +02:00
|
|
|
</header>
|