2020-02-03 11:38:10 +01:00
|
|
|
{{- /* Desktop navbar */ -}}
|
2019-02-03 12:30:44 +01:00
|
|
|
<nav class="navbar">
|
2019-08-24 13:32:41 +02:00
|
|
|
<div class="navbar-container">
|
2019-11-23 09:22:42 +01:00
|
|
|
<div class="navbar-header animated bounceIn">
|
2020-01-31 15:53:04 +01:00
|
|
|
<a href="{{ .Site.BaseURL }}">
|
|
|
|
{{- .Site.Title -}}
|
|
|
|
</a>
|
2019-02-03 12:30:44 +01:00
|
|
|
</div>
|
2019-08-24 13:32:41 +02:00
|
|
|
<div class="navbar-menu">
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- $currentPage := . }}
|
|
|
|
{{- range .Site.Menus.main -}}
|
|
|
|
<a class="menu-item{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) | or (eq $currentPage.RelPermalink .URL) }} active{{ end }}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">
|
2020-02-03 19:19:05 +01:00
|
|
|
{{- .Pre | safeHTML }}{{ .Name -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
</a>
|
|
|
|
{{- end -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
<a href="javascript:void(0);" class="theme-switch"><i class="fas fa-adjust fa-rotate-180 fa-fw" title="{{ T "switchTheme" }}"></i></a>
|
2019-02-03 12:30:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2020-01-30 06:17:42 +01:00
|
|
|
|
2020-02-03 11:38:10 +01:00
|
|
|
{{- /* Mobile navbar */ -}}
|
2019-08-24 13:32:41 +02:00
|
|
|
<nav class="navbar-mobile">
|
2020-01-30 06:17:42 +01:00
|
|
|
<div class="navbar-container">
|
2019-02-03 12:30:44 +01:00
|
|
|
<div class="navbar-header">
|
2019-11-23 09:22:42 +01:00
|
|
|
<div class="navbar-header-title animated bounceIn">
|
2020-02-03 11:38:10 +01:00
|
|
|
<a href="{{ .Site.BaseURL }}">
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- .Site.Title -}}
|
|
|
|
</a>
|
2019-11-23 09:22:42 +01:00
|
|
|
</div>
|
2019-08-24 13:32:41 +02:00
|
|
|
<div class="menu-toggle" id="menu-toggle">
|
2019-02-03 12:30:44 +01:00
|
|
|
<span></span><span></span><span></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-24 13:32:41 +02:00
|
|
|
<div class="navbar-menu" id="mobile-menu">
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- $currentPage := . -}}
|
|
|
|
{{- range .Site.Menus.main -}}
|
|
|
|
<a class="menu-item" href="{{ .URL | absLangURL }}" title="{{ .Title }}">
|
|
|
|
{{- .Name | safeHTML -}}
|
|
|
|
</a>
|
|
|
|
{{- end -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
<a href="javascript:void(0);" class="theme-switch"><i class="fas fa-adjust fa-rotate-180 fa-fw" title="{{ T "switchTheme" }}"></i></a>
|
2019-02-03 12:30:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-06 17:10:00 +01:00
|
|
|
</nav>
|