2020-10-05 09:57:10 +02:00
|
|
|
{{ $currentPage := . }}
|
|
|
|
|
2020-09-14 16:24:02 +02:00
|
|
|
<nav>
|
|
|
|
<div class="container">
|
|
|
|
<section class="website-name">
|
2020-10-05 09:57:10 +02:00
|
|
|
{{ range .Site.Menus.name }}
|
|
|
|
{{ if $currentPage.IsMenuCurrent "name" . }}
|
|
|
|
<a href="{{ .URL }}" class="active">{{ .Name }}</a>
|
|
|
|
{{ else }}
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2020-09-14 16:24:02 +02:00
|
|
|
</section>
|
2020-09-30 20:37:20 +02:00
|
|
|
<span class="seperator">/</span>
|
|
|
|
<section class="website-mainmenu">
|
2020-09-14 16:24:02 +02:00
|
|
|
<ul>
|
|
|
|
{{ range .Site.Menus.main }}
|
2020-10-09 10:00:12 +02:00
|
|
|
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
|
2020-10-05 09:57:10 +02:00
|
|
|
<li class="active">
|
|
|
|
<a href="{{ .URL }}">
|
|
|
|
<span>{{ .Name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ else }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ .URL }}">
|
|
|
|
<span>{{ .Name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
2020-09-14 16:24:02 +02:00
|
|
|
{{ end }}
|
2020-09-30 20:37:20 +02:00
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
<section class="website-externallinks">
|
|
|
|
<ul>
|
|
|
|
{{ range .Site.Menus.externallinks }}
|
2020-09-23 18:17:31 +02:00
|
|
|
<li>
|
2020-09-30 20:37:20 +02:00
|
|
|
<a title="{{ .URL }}" href="{{ .URL }}">
|
|
|
|
{{ .Pre }}
|
|
|
|
<span>{{ .Name }}</span>
|
|
|
|
</a>
|
2020-09-23 18:17:31 +02:00
|
|
|
</li>
|
2020-09-14 16:24:02 +02:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</nav>
|