{{ $ := .root }} {{ $page := .page }} {{ $bg := $page.Params.design.background }} {{ if $page.Params.hero_media }}
{{ if $page.Params.cta.icon }}{{end}}{{ $page.Params.cta.label | markdownify | emojify | safeHTML }} {{/* Alternative Call-to-action link */}} {{ if $page.Params.cta_alt.url }} {{ $link := $page.Params.cta_alt.url }} {{ $scheme := (urls.Parse $link).Scheme }} {{ $target := "" }} {{ if not $scheme }} {{ $link = $link | relLangURL }} {{ else if in (slice "http" "https") $scheme }} {{ $target = "target=\"_blank\" rel=\"noopener\"" }} {{ end }} {{ $page.Params.cta_alt.label | markdownify | emojify | safeHTML }} {{ end }}
{{ end }} {{/* Call-to-action note */}} {{ with $page.Params.cta_note }}{{ .label | markdownify | emojify | safeHTML }}
{{ end }} {{/* Hero image */}} {{ if $page.Params.hero_media }}