2020-11-20 22:39:10 +01:00
|
|
|
{{ $currentPage := . }}
|
|
|
|
<nav>
|
|
|
|
<div class="container">
|
|
|
|
<section class="website-name">
|
|
|
|
{{- range .Site.Menus.name }}
|
|
|
|
{{- if $currentPage.IsMenuCurrent "name" . }}
|
|
|
|
<a href="{{ .URL }}" class="active">{{ .Name }}</a>
|
|
|
|
{{- else }}
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
</section>
|
|
|
|
<span class="seperator">/</span>
|
|
|
|
<section class="website-mainmenu">
|
|
|
|
<ul>
|
|
|
|
{{- range .Site.Menus.main -}}
|
|
|
|
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) -}}
|
|
|
|
<li class="active">
|
|
|
|
<a href="{{ .URL }}">
|
|
|
|
<span>{{ .Name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{- else }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ .URL }}">
|
|
|
|
<span>{{ .Name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
<section class="website-externallinks">
|
|
|
|
<ul>
|
|
|
|
{{- range .Site.Menus.externallinks }}
|
|
|
|
<li>
|
|
|
|
<a title="{{ .URL }}" href="{{ .URL }}">
|
|
|
|
{{- .Pre }}
|
|
|
|
<span>{{ .Name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</nav>
|