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-24 02:50:51 +02:00
|
|
|
<a href="/" 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>
|
|
|
|
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ .Name }}</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 }}
|
|
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ 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>
|
|
|
|
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ .Name }}</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-22 11:46:34 +02:00
|
|
|
<button type="button" aria-haspopup="false" aria-expanded="true" aria-label="Zoeken"></button>
|
2023-05-24 02:38:01 +02:00
|
|
|
<a href="{{ relLangURL "/zoeken/"}}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "magnifying-glass" "title" "Zoeken") }}</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>
|