2021-09-22 02:24:46 +00:00
|
|
|
<header
|
2021-12-21 02:22:45 +00:00
|
|
|
class="flex justify-between py-6 font-semibold sm:items-center sm:py-10 text-neutral-900 dark:text-neutral"
|
2021-09-22 02:24:46 +00:00
|
|
|
>
|
2021-10-19 04:44:23 +00:00
|
|
|
{{/* Site logo/title */}}
|
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 }}
|
2021-10-19 06:33:18 +00:00
|
|
|
<a href="{{ "/" | relURL }}">
|
|
|
|
<img
|
|
|
|
src="{{ $logo.RelPermalink }}"
|
|
|
|
width="{{ div $logo.Width 2 }}"
|
|
|
|
height="{{ div $logo.Height 2 }}"
|
2021-10-28 06:19:53 +00:00
|
|
|
class="max-w-[10rem] max-h-[10rem] object-scale-down object-left"
|
2021-10-19 06:33:18 +00:00
|
|
|
alt="{{ .Site.Title }}"
|
|
|
|
/>
|
|
|
|
</a>
|
2021-09-22 02:24:46 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<a
|
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
|
|
|
rel="me"
|
|
|
|
href="{{ "/" | relURL }}"
|
2021-10-26 23:34:50 +00:00
|
|
|
>{{ .Site.Title | markdownify | emojify }}</a
|
2021-09-22 02:24:46 +00:00
|
|
|
>
|
|
|
|
{{- end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</div>
|
2021-10-19 04:44:23 +00:00
|
|
|
{{/* Main menu */}}
|
|
|
|
{{ if .Site.Menus.main }}
|
|
|
|
<nav>
|
|
|
|
<ul class="flex flex-col list-none sm:flex-row">
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
<li class="mb-1 text-right sm:mb-0 sm:mr-7 sm:last:mr-0">
|
|
|
|
<a
|
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
|
|
|
href="{{ .URL }}"
|
|
|
|
title="{{ .Title }}"
|
2021-10-26 23:34:50 +00:00
|
|
|
>{{ .Name | markdownify | emojify }}</a
|
2021-10-19 04:44:23 +00:00
|
|
|
>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</header>
|