2019-02-03 12:30:44 +01:00
|
|
|
<nav class="navbar">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header header-logo">
|
2019-08-04 15:53:35 +02:00
|
|
|
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
2019-02-03 12:30:44 +01:00
|
|
|
</div>
|
2019-08-04 15:53:35 +02:00
|
|
|
|
2019-02-03 12:30:44 +01:00
|
|
|
<div class="menu navbar-right">
|
2019-08-04 15:53:35 +02:00
|
|
|
{{ $currentPage := . }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
<a class="menu-item{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{ end }}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
|
|
|
|
{{ end }}
|
2019-08-16 21:40:34 +02:00
|
|
|
<a href="javascript:void(0);" class="theme-switch"><i class="fas fa-adjust fa-rotate-180"></i></a>
|
2019-02-03 12:30:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<nav class="navbar-mobile" id="nav-mobile" style="display: none">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
2019-08-16 21:40:34 +02:00
|
|
|
<div><a href="javascript:void(0);" class="theme-switch"><i class="fas fa-adjust fa-rotate-180"></i></a> <a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a></div>
|
2019-02-03 12:30:44 +01:00
|
|
|
<div class="menu-toggle">
|
|
|
|
<span></span><span></span><span></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-04 15:53:35 +02:00
|
|
|
|
|
|
|
<div class="menu" id="mobile-menu">
|
|
|
|
{{ $currentPage := . }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
<a class="menu-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{ end }}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
|
|
|
|
{{ end }}
|
2019-02-03 12:30:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-18 19:36:52 +02:00
|
|
|
</nav>
|