2021-09-22 02:24:46 +00:00
|
|
|
<header
|
|
|
|
class="flex justify-between py-6 font-semibold sm:items-center sm:py-10 text-neutral-800 dark:text-neutral"
|
|
|
|
>
|
2021-08-11 05:28:33 +00:00
|
|
|
<div>
|
2021-09-22 02:24:46 +00:00
|
|
|
{{ if .Site.Params.Logo -}}
|
|
|
|
{{ $logo := resources.Get .Site.Params.Logo }}
|
|
|
|
{{ if $logo }}
|
|
|
|
<img
|
|
|
|
src="{{ $logo.RelPermalink }}"
|
|
|
|
width="{{ div $logo.Width 2 }}"
|
|
|
|
height="{{ div $logo.Height 2 }}"
|
|
|
|
alt="{{ .Site.Title }}"
|
|
|
|
/>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<a
|
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
|
|
|
rel="me"
|
|
|
|
href="{{ "/" | relURL }}"
|
|
|
|
>{{ .Site.Title }}</a
|
|
|
|
>
|
|
|
|
{{- end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</div>
|
|
|
|
<nav>
|
2021-08-14 03:33:45 +00:00
|
|
|
<ul class="flex flex-col list-none sm:flex-row">
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ range .Site.Menus.main }}
|
2021-08-22 07:19:42 +00:00
|
|
|
<li class="mb-1 text-right sm:mb-0 sm:mr-7 sm:last:mr-0">
|
2021-08-18 02:54:18 +00:00
|
|
|
<a
|
2021-08-20 03:56:45 +00:00
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
2021-08-25 23:44:41 +00:00
|
|
|
href="{{ .URL }}"
|
2021-08-18 02:54:18 +00:00
|
|
|
title="{{ .Title }}"
|
|
|
|
>{{ .Name }}</a
|
|
|
|
>
|
2021-08-11 05:28:33 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|