2022-05-21 23:20:22 -05:00
|
|
|
<header class="header">
|
2023-03-24 08:49:02 -05:00
|
|
|
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
|
2023-01-07 20:50:01 -06:00
|
|
|
{{ .Site.Title | markdownify }}
|
|
|
|
</a>
|
2022-05-21 23:20:22 -05:00
|
|
|
</header>
|
2021-10-11 09:52:24 -05:00
|
|
|
|
2023-03-24 08:49:02 -05:00
|
|
|
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
|
|
|
{{ with .Site.Home }}
|
|
|
|
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
|
|
|
{{ end }}
|
2021-10-11 20:13:20 -05:00
|
|
|
|
2023-03-24 08:49:02 -05:00
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
{{ $isActive := false }}
|
2023-10-15 17:49:56 -05:00
|
|
|
{{/* https://discourse.gohugo.io/t/ismenucurrent-not-working-with-using-sectionpagesmenu/46687/2?u=bbaovanc */}}
|
|
|
|
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
|
2023-03-24 08:49:02 -05:00
|
|
|
{{ $isActive = true }}
|
2021-11-04 21:04:27 -05:00
|
|
|
{{ end }}
|
2023-03-24 08:49:02 -05:00
|
|
|
<a class="navbar-item{{ if $isActive }} active{{ end }}"
|
|
|
|
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
|
|
|
href="{{ .URL }}">{{ .Name }}</a>
|
2021-10-11 21:26:23 -05:00
|
|
|
{{ end }}
|
2023-03-24 08:49:02 -05:00
|
|
|
</nav>
|