2022-11-10 00:32:43 +00:00
|
|
|
{{- if .Site.Params.header.logo }}
|
|
|
|
{{- $logo := resources.Get .Site.Params.header.logo }}
|
2023-04-27 21:11:41 +00:00
|
|
|
{{- $logo_dark := resources.Get .Site.Params.header.logoDark }}
|
|
|
|
{{- if $logo }}
|
|
|
|
<a href="{{ "" | relLangURL }}" class="mr-2">
|
2023-04-13 07:57:46 +00:00
|
|
|
<img
|
|
|
|
src="{{ $logo.RelPermalink }}"
|
2023-10-24 21:27:08 +00:00
|
|
|
{{- if eq $logo.MediaType.SubType "svg" }}
|
|
|
|
width="25"
|
|
|
|
height="25"
|
|
|
|
class="m-0 p-0 object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
|
|
|
{{- else }}
|
|
|
|
width="{{ div $logo.Width 2 }}"
|
|
|
|
height="{{ div $logo.Height 2 }}"
|
|
|
|
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
|
|
|
{{- end }}
|
2023-04-13 07:57:46 +00:00
|
|
|
alt="{{ .Site.Title }}"
|
|
|
|
/>
|
2023-04-27 21:11:41 +00:00
|
|
|
{{- if $logo_dark }}
|
2022-11-07 04:54:21 +00:00
|
|
|
<img
|
2023-04-27 21:11:41 +00:00
|
|
|
src="{{ $logo_dark.RelPermalink }}"
|
2023-10-24 21:27:08 +00:00
|
|
|
{{- if eq $logo_dark.MediaType.SubType "svg" }}
|
|
|
|
width="25"
|
|
|
|
height="25"
|
|
|
|
class="m-0 p-0 object-scale-down object-left{{ if $logo }} !dark:hidden{{ end }}"
|
|
|
|
{{- else }}
|
|
|
|
width="{{ div $logo_dark.Width 2 }}"
|
|
|
|
height="{{ div $logo_dark.Height 2 }}"
|
|
|
|
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo }} !dark:hidden{{ end }}"
|
|
|
|
{{- end }}
|
2022-11-07 04:54:21 +00:00
|
|
|
alt="{{ .Site.Title }}"
|
|
|
|
/>
|
2023-04-27 21:11:41 +00:00
|
|
|
{{- end}}
|
2022-11-07 04:54:21 +00:00
|
|
|
</a>
|
2022-11-10 00:32:43 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Site.Params.header.showTitle | default true }}
|
2022-11-07 04:54:21 +00:00
|
|
|
<a
|
|
|
|
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
|
|
|
rel="me"
|
|
|
|
href="{{ "" | relLangURL }}"
|
|
|
|
>{{ .Site.Title | markdownify | emojify }}</a
|
|
|
|
>
|
|
|
|
{{- end }}
|