Cleanup
This commit is contained in:
parent
31c2575ff0
commit
b10c389b5c
|
@ -1,45 +1,23 @@
|
||||||
|
<header class="header">
|
||||||
|
<input class="side-menu" type="checkbox" id="side-menu">
|
||||||
<header class="header">
|
<label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
|
||||||
|
<nav class="nav">
|
||||||
<input class="side-menu" type="checkbox" id="side-menu">
|
<ul class="menu">
|
||||||
<label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
|
{{ $currentPage := . }}
|
||||||
<nav class="nav">
|
{{ range .Site.Menus.main }}
|
||||||
|
{{ if .Children }}
|
||||||
<ul class="menu">
|
<li class="subnav">
|
||||||
{{ $currentPage := . }}
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ range .Site.Menus.main }}
|
<ul class="subnav-content">
|
||||||
{{ if .Children }}
|
{{ range .Children }}
|
||||||
<li class="subnav">
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
{{ end }}
|
||||||
<ul class="subnav-content">
|
</ul>
|
||||||
{{ range .Children }}
|
</li>
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
{{ else }}
|
||||||
{{ end }}
|
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
{{ else }}
|
|
||||||
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
{{ end }}
|
||||||
</nav>
|
</ul>
|
||||||
</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>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
-->
|
|
||||||
<hr class="hr-list" style="padding: 0;margin: 0;">
|
|
||||||
|
|
Reference in a new issue