{{ define "main" }} {{ $page := . }} {{ $height := $page.Params.paige.home.image.height | default "20rem" }} {{ $stretch := $page.Params.paige.home.image.stretch }} {{ $width := $page.Params.paige.home.image.width }}
{{ partial "paige/metadata.html" $page }} {{ if or $page.Params.paige.home.image.url $page.Params.paige.home.greeting $page.Params.paige.home.blurb }}
{{ if $page.Params.paige.home.image.url }} {{ $class := cond ($stretch | not) "mw-100 rounded-4 shadow" "rounded-4 shadow" }} {{ $style := cond ($stretch | not) (printf "height: %s; width: %s" $height ($width | default "auto")) (printf "height: %s; object-fit: cover; width: %s" $height ($width | default "100%")) }}

{{ partial "paige/img.html" (dict "alt" $page.Params.paige.home.image.alt "class" $class "fetchpriority" "high" "loading" "eager" "page" $page "src" $page.Params.paige.home.image.url "style" $style ) }}

{{ end }} {{ with $page.Params.paige.home.greeting }}

{{ . | markdownify }}

{{ end }} {{ with $page.Params.paige.home.blurb }}

{{ . | markdownify }}

{{ end }}
{{ end }} {{ partial "paige/toc.html" $page }} {{ partial "paige/content.html" $page }} {{ if $page.Param "paige.social" }}

{{ partial "paige/social.html" $page }}

{{ end }}
{{ end }}