hugo-theme-minima/layouts/partials/header.html

23 lines
940 B
HTML
Raw Normal View History

2022-11-08 11:07:48 +01:00
<header class="mt-3 mb-6">
<div class="container mx-auto">
<nav class="flex justify-between items-center">
<div class="flex items-center">
{{ if .Site.Params.brand }}
<div class="mr-3 text-3xl"><a href="/">{{ .Site.Params.brand }}</a></div>
{{ end }}
2022-11-08 16:10:57 +01:00
<div id="theme-switcher" class="text-3xl cursor-pointer">{{ index .Site.Params.switch 1 }}</div>
</div>
<ul class="flex items-center font-medium
whitespace-nowrap overflow-x-auto overflow-y-hidden">
{{ range .Site.Menus.main }}
2022-11-08 16:10:57 +01:00
<li class="ml-1 mr-1"><a href="{{ .URL | absLangURL }}">{{ T .Identifier | default .Name }}</a></li>
{{ end }}
</ul>
2022-11-08 16:10:57 +01:00
<ul class="flex item-center text-sm font-bold">
{{ range $.Site.Home.AllTranslations }}
2022-11-08 11:07:48 +01:00
<li class="ml-2"><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
{{ end}}
</ul>
</nav>
2021-08-29 17:55:45 +02:00
</div>
2021-07-18 10:34:01 +02:00
</header>