This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/partials/header.html

46 lines
1.4 KiB
HTML

<header class="header">
<input class="side-menu" type="checkbox" id="side-menu">
<label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
<nav class="nav">
<ul class="menu">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if .Children }}
<li class="subnav">
<a href="{{ .URL }}">{{ .Name }}</a>
<ul class="subnav-content">
{{ range .Children }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</li>
{{ else }}
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
</ul>
</nav>
</header>
<!--
<header>
<nav style="padding:0;width:100%;">
<a href="/"><img src="/afbeeldingen/logo/nluug-logo.png" alt="NLUUG-logo" title="{{ .Site.Title }}"></a>
<div class="header">
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
<a href="{{ .URL }}"><span>{{ .Name }}</span></a>
</li>
{{ end }}
</ul>
</div>
</nav>
</header>
-->
<hr class="hr-list" style="padding: 0;margin: 0;">