{{ define "main" }} {{ $page := . }} {{ $stretch := $page.Params.paige.home.image.stretch }}
{{ 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 w-100" }} {{ $style := cond ($stretch | not) "height: 20rem; width: auto" "height: 20rem; object-fit: cover; width: 100%" }}

{{ partial "paige/img.html" (dict "class" $class "fetchpriority" "high" "loading" "eager" "raw" $page.Params.paige.home.image.raw "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 }} {{ partial "paige/social.html" $page }}
{{ end }}