{{- /* @deprecated 2.21.0 remove in 3.0.0: remove this marker, it only detects site overrides of this partial (see #1120) */ -}} {{- .Store.Set "ananke.deprecated.theme-partial.page-header.html" true -}} {{ $featured_image := partials.Include "func/GetFeaturedImage.html" . }} {{ if $featured_image }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{ $featured_image_class := .Params.featured_image_class | compare.Default "cover bg-center" }} {{ $cover_dimming_class := .Params.cover_dimming_class | compare.Default "bg-black-60" }} {{ $header_section_class := .Param "header_section_class" | compare.Default "tc-l pv6 ph3 ph4-ns" }} {{ $background := partials.Include "func/FeaturedImageStyle.html" . }} {{ with $background.stylesheet }}{{ end }}
{{/* @deprecated 2.21.0 remove in 3.0.0: include site-navigation.html directly (see #1120) */ -}} {{ partials.Include "func/header/IncludeChecked.html" (collections.Dictionary "name" "site-navigation.html" "page" .) }}
{{ if not .Params.omit_header_text }} {{ partials.Include "header/content.html" (collections.Dictionary "page" . "variant" "page" "featured_image" $featured_image) }} {{ end }}
{{ else }}
{{/* @deprecated 2.21.0 remove in 3.0.0: include site-navigation.html directly (see #1120) */ -}} {{ partials.Include "func/header/IncludeChecked.html" (collections.Dictionary "name" "site-navigation.html" "page" .) }}
{{ end }}