{{ $header_image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }} {{$image_resource := $header_image }} {{ if $image_resource }} {{ $header_img := $image_resource.Fill "1200x600 Center" }} {{ $image_url := $header_img.Permalink }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{ $image_url := (trim $image_url "/") | absURL }} {{ partial "site-navigation.html" . }} {{ if not .Params.omit_header_text }} {{ .Title | default .Site.Title }} {{ with .Params.description }} {{ . }} {{ end }} {{ end }} {{ else }} {{ partial "site-navigation.html" . }} {{ end }}