2018-03-01 01:38:59 +00:00
|
|
|
<nav class="navigation">
|
|
|
|
<section class="container">
|
2019-08-05 12:33:43 +00:00
|
|
|
<a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
|
2018-03-01 01:38:59 +00:00
|
|
|
{{ .Site.Title }}
|
|
|
|
</a>
|
2018-08-21 19:26:15 +00:00
|
|
|
<input type="checkbox" id="menu-toggle" />
|
2018-08-22 11:36:14 +00:00
|
|
|
<label class="menu-button float-right" for="menu-toggle"><i class="fas fa-bars"></i></label>
|
2018-08-21 19:26:15 +00:00
|
|
|
<ul class="navigation-list">
|
|
|
|
{{ with .Site.Menus.main}}
|
|
|
|
{{ range sort . }}
|
|
|
|
<li class="navigation-item">
|
2019-08-05 12:33:43 +00:00
|
|
|
<a class="navigation-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
2018-08-21 19:26:15 +00:00
|
|
|
</li>
|
2018-07-08 23:12:36 +00:00
|
|
|
{{ end }}
|
2018-08-21 19:26:15 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if .Site.IsMultiLingual }}
|
|
|
|
{{ $node := . }}
|
|
|
|
{{ .Scratch.Set "separator" true }}
|
|
|
|
{{ range .Site.Home.AllTranslations }}
|
|
|
|
{{ if ne $.Site.Language .Language }}
|
|
|
|
{{ if $node.Scratch.Get "separator" }}
|
|
|
|
<li class="navigation-item menu-separator">
|
|
|
|
<span>|</span>
|
2018-07-08 23:12:36 +00:00
|
|
|
</li>
|
2018-08-21 19:26:15 +00:00
|
|
|
{{ $node.Scratch.Set "separator" false }}
|
2018-07-08 23:12:36 +00:00
|
|
|
{{ end }}
|
2018-08-21 19:26:15 +00:00
|
|
|
<li class="navigation-item">
|
|
|
|
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
|
|
</li>
|
2018-07-08 23:12:36 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2018-08-21 19:26:15 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2018-03-01 01:38:59 +00:00
|
|
|
</section>
|
|
|
|
</nav>
|