2018-03-01 01:38:59 +00:00
|
|
|
<nav class="navigation">
|
|
|
|
<section class="container">
|
2018-07-08 23:12:36 +00:00
|
|
|
<a class="navigation-title" href="{{ print "/" | absLangURL }}">
|
2018-03-01 01:38:59 +00:00
|
|
|
{{ .Site.Title }}
|
|
|
|
</a>
|
2018-06-18 17:55:42 +00:00
|
|
|
<ul class="navigation-list {{ if $.Site.Params.rtl }} float-left {{ else }} float-right {{ end }}">
|
2018-07-08 23:12:36 +00:00
|
|
|
{{ with .Site.Menus.main}}
|
|
|
|
{{ range sort . }}
|
|
|
|
<li class="navigation-item">
|
|
|
|
<a class="navigation-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Site.IsMultiLingual }}
|
|
|
|
{{ $node := . }}
|
|
|
|
{{ .Scratch.Set "separator" true }}
|
|
|
|
|
|
|
|
{{ range .Site.Home.AllTranslations }}
|
|
|
|
{{ if ne $.Site.Language .Language }}
|
|
|
|
{{ if $node.Scratch.Get "separator" }}
|
|
|
|
<li>
|
|
|
|
<p>{{ .Site.Params.LangSeparator }}</p>
|
|
|
|
</li>
|
|
|
|
{{ $node.Scratch.Set "separator" false }}
|
|
|
|
{{ end }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2018-03-01 01:38:59 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</nav>
|