{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }} {{ $disableHeroImageFilter := .Site.Params.homepage.disableHeroImageFilter | default false }}
{{ $homepageImage := "" }} {{ with .Site.Params.defaultBackgroundImage }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $homepageImage = resources.GetRemote . }} {{ else }} {{ $homepageImage = resources.Get . }} {{ end }} {{ end }} {{ with .Site.Params.homepage.homepageImage }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $homepageImage = resources.GetRemote . }} {{ else }} {{ $homepageImage = resources.Get . }} {{ end }} {{ end }} {{ if $homepageImage }} {{ if not $disableHeroImageFilter }}
{{ else }}
{{ end }} {{ end }}
{{ with .Site.Params.Author.image }} {{ $authorImage := "" }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $authorImage = resources.GetRemote . }} {{ else }} {{ $authorImage = resources.Get . }} {{ end }} {{ if $authorImage }} {{ if not $disableImageOptimization }} {{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} {{ end }} {{ $.Site.Params.Author.name | default {{ end }} {{ end }} {{ if not $disableHeroImageFilter }}

{{ .Site.Params.Author.name | default .Site.Title }}

{{ with .Site.Params.Author.headline }}

{{ . | markdownify }}

{{ end }} {{ else }}

{{ .Site.Params.Author.name | default .Site.Title }}

{{ with .Site.Params.Author.headline }}

{{ . | markdownify }}

{{ end }} {{ end }}
{{ with .Site.Params.Author.links }}
{{ range $links := . }} {{ range $name, $url := $links }} {{ if not $disableHeroImageFilter }} {{ partial "icon.html" $name }} {{ else }} {{ partial "icon.html" $name }} {{ end }} {{ end }} {{ end }}
{{ end }}
{{ .Content }}
{{ partial "recent-articles/main.html" . }}