{{- partial "head.html" . -}} {{- partialCached "init.html" . -}} {{ $bodyLayout := "flex flex-col h-screen m-auto leading-7 max-w-7xl px-6 sm:px-14 md:px-24 lg:px-32" }} {{/* Global Background Logic */}} {{ $useGlobalBg := false }} {{ $bgImage := "" }} {{ if site.Params.defaultBackgroundImage }} {{ $useGlobalBg = true }} {{ $bgImage = site.Params.defaultBackgroundImage }} {{ if .IsHome }} {{ if or (eq .Site.Params.homepage.layout "background") (eq .Site.Params.homepage.layout "hero") }} {{ if .Site.Params.homepage.homepageImage }}{{ $useGlobalBg = false }}{{ end }} {{ end }} {{ else if .IsPage }} {{ $heroStyle := .Params.heroStyle | default (.Site.Params.article.heroStyle | default "basic") }} {{ if or (eq $heroStyle "background") (eq $heroStyle "hero") }} {{ if .Params.featureimage }}{{ $useGlobalBg = false }}{{ end }} {{ end }} {{ end }} {{ end }} {{ $bodyColor := "text-lg bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral" }} {{ if $useGlobalBg }} {{ $bodyColor = "text-lg text-neutral-900 dark:text-neutral" }} {{ end }} {{ $globalBgClass := cond $useGlobalBg "has-global-bg" "" }} {{ if $useGlobalBg }} {{ $bgURL := "" }} {{ if or (strings.HasPrefix $bgImage "http:") (strings.HasPrefix $bgImage "https:") }} {{ $bgURL = $bgImage }} {{ else }} {{ $bgURL = $bgImage | absURL }} {{ end }}
{{ $style := "" }} {{ $defaultPosition := site.Params.imagePosition | default false }} {{ if $defaultPosition }} {{ $style = printf "object-position: %s;" $defaultPosition }} {{ end }}
{{ end }}
{{ i18n "nav.skip_to_main" }}
{{ $header := print "header/" site.Params.header.layout ".html" }} {{ if templates.Exists ( printf "partials/%s" $header ) }} {{ partial $header . }} {{ else }} {{ partial "header/basic.html" . }} {{ end }}
{{ block "main" . }}{{ end }} {{ if and (site.Params.footer.showScrollToTop | default true) }} {{- partial "scroll-to-top.html" . -}} {{ end }}
{{- partial "footer.html" . -}} {{ if site.Params.enableSearch | default false }} {{- partial "search.html" . -}} {{ end }}
{{ if site.Params.buymeacoffee.globalWidget | default false }} {{ end }}