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

23 lines
953 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-09 09:03:19 +01:00
<div id="theme-switch" class="text-3xl cursor-pointer">{{ index .Site.Params.switch 1 }}</div>
</div>
2023-04-10 15:37:53 +02:00
<ul class="flex items-center text-base font-bold
whitespace-nowrap overflow-x-auto overflow-y-hidden">
{{ range .Site.Menus.main }}
2023-03-14 11:00:05 +01:00
<li class="ml-2 mr-2"><a href="{{ .Identifier | relLangURL }}">{{ 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>