{{- 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 }}