2023-06-19 11:40:17 +00:00
|
|
|
<nav class="menu">
|
|
|
|
<ul class="menu__inner">
|
|
|
|
{{- $currentPage := . -}}
|
|
|
|
{{ range .Site.Menus.main -}}
|
2023-06-19 14:37:16 +00:00
|
|
|
<li><a href="{{ .URL | relLangURL }}">{{ or (T .Identifier) .Name }}</a></li>
|
2023-06-19 11:40:17 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if .Site.Params.EnableGlobalLanguageMenu }}
|
|
|
|
<div class="submenu">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="javascript:void(0)" class="dropbtn">{{ .Language }}</a>
|
|
|
|
<div class="dropdown-content">
|
|
|
|
{{ if .Site.IsMultiLingual }}
|
|
|
|
{{ range $.Translations }}
|
|
|
|
<a title="{{ .Language }}" href="{{ .Permalink }}">{{ .Language }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|