2022-08-18 04:59:46 +00:00
|
|
|
<header class="py-6 font-semibold text-neutral-900 dark:text-neutral print:hidden sm:py-10">
|
2022-06-27 02:31:15 +00:00
|
|
|
<nav class="flex justify-between">
|
|
|
|
{{/* Site logo/title */}}
|
|
|
|
<div>
|
2022-11-07 04:54:21 +00:00
|
|
|
{{ partial "logo.html" . }}
|
2022-06-27 02:31:15 +00:00
|
|
|
{{ partial "translations.html" . }}
|
|
|
|
</div>
|
|
|
|
{{/* Main menu */}}
|
|
|
|
{{ if or .Site.Menus.main (.Site.Params.enableSearch | default false) }}
|
|
|
|
<ul class="flex flex-col list-none ltr:text-right rtl:text-left sm:flex-row">
|
|
|
|
{{ if .Site.Menus.main }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
<li class="mb-1 sm:mb-0 ltr:sm:mr-7 ltr:sm:last:mr-0 rtl:sm:ml-7 rtl:sm:last:ml-0">
|
|
|
|
<a
|
|
|
|
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
|
|
|
href="{{ .URL }}"
|
|
|
|
title="{{ .Title }}"
|
|
|
|
>{{ .Name | markdownify | emojify }}</a
|
|
|
|
>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.enableSearch | default false }}
|
|
|
|
<li class="ltr:sm:mr-7 ltr:sm:last:mr-0 rtl:sm:ml-7 rtl:sm:last:ml-0">
|
|
|
|
<button
|
|
|
|
id="search-button"
|
|
|
|
class="text-base hover:text-primary-600 dark:hover:text-primary-400"
|
|
|
|
title="{{ i18n "search.open_button_title" }}"
|
|
|
|
>
|
|
|
|
{{ partial "icon.html" "search" }}
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
</header>
|