{{ $heroImage := .Params.heroImage | default site.Params.homepage.homepageImage }} {{ $heroImg := "" }} {{ with $heroImage }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $heroImg = resources.GetRemote . }} {{ else }} {{ $heroImg = resources.Get . }} {{ end }} {{ end }} {{ with $heroImg }}
{{ $heroFade := resources.Get "js/hero-scroll-fade.js" }} {{ $heroFade = $heroFade | resources.Minify | resources.Fingerprint (site.Params.fingerprintAlgorithm | default "sha512") }} {{ end }}
{{ with .Params.heroCaption | default .Site.Params.Author.name }}

{{ . | markdownify }}

{{ end }} {{ with .Title }}

{{ . | emojify }}

{{ end }} {{ with .Params.heroLead }}

{{ . | markdownify }}

{{ end }} {{ with .Params.heroButtons }}
{{ range . }} {{ partial "cta-button.html" (dict "url" .url "label" .label "style" .style "github" .github) }} {{ end }}
{{ end }}
{{ .Content }}