2021-10-11 09:52:24 -05:00
|
|
|
<h2 class="header">
|
2021-10-23 00:25:06 -05:00
|
|
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
2021-10-11 09:52:24 -05:00
|
|
|
</h2>
|
|
|
|
|
2021-11-04 21:04:27 -05:00
|
|
|
<div class="topbar">
|
|
|
|
<nav class="navbar">
|
|
|
|
{{ with .Site.Home }}
|
|
|
|
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title }}</a>
|
|
|
|
{{ end }}
|
2021-10-11 20:13:20 -05:00
|
|
|
|
2021-11-04 21:04:27 -05:00
|
|
|
{{ range .Site.Menus.main }}
|
2021-11-02 16:51:07 -05:00
|
|
|
|
2021-11-04 21:04:27 -05:00
|
|
|
{{ $isActive := false }}
|
|
|
|
{{ if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }}
|
|
|
|
{{ $isActive = true }}
|
|
|
|
{{ end }}
|
2021-11-02 16:51:07 -05:00
|
|
|
|
2021-11-04 21:04:27 -05:00
|
|
|
<a class="navbar-item{{ if $isActive }} active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
|
2021-11-02 16:51:07 -05:00
|
|
|
|
2021-11-04 21:04:27 -05:00
|
|
|
{{ end }}
|
|
|
|
</nav>
|
2021-10-11 21:26:23 -05:00
|
|
|
|
2021-11-04 21:04:27 -05:00
|
|
|
{{ if .Site.IsMultiLingual }}
|
|
|
|
<nav class="langpicker">
|
|
|
|
{{ range .Site.Home.AllTranslations }}
|
|
|
|
<a class="langpicker-item{{ if eq .Language $.Site.Language }} active{{ end }}" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</nav>
|
2021-10-11 21:26:23 -05:00
|
|
|
{{ end }}
|
2021-11-04 21:04:27 -05:00
|
|
|
</div>
|