{{- if $.Page.Site.Params.header.logo }} {{- $logo := resources.Get $.Page.Site.Params.header.logo }} {{- $logo_dark := resources.Get $.Page.Site.Params.header.logoDark }} {{- $logoAlt := $.Page.Site.Title -}} {{- $logoClass := "max-h-[10rem] max-w-[10rem] object-scale-down object-left flex" -}} {{- $logoDarkClass := (print $logoClass " hidden dark:flex") -}} {{- if $logo_dark -}} {{- $logoClass = (print $logoClass " dark:hidden" ) -}} {{- end }} {{- if or $logo $logo_dark -}} {{- end }} {{- with $logo }} {{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoClass "lazy" false "webp" false ) -}} {{- end -}} {{- with $logo_dark }} {{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoDarkClass "lazy" false "webp" false ) -}} {{- end -}} {{- if or $logo $logo_dark -}} {{- end }} {{- end }} {{- if $.Page.Site.Params.header.showTitle | default true }} {{ .Site.Title | markdownify | emojify }} {{- end }}