blob: fab00d200b17bbd968b2fe25bd68e40298fbfa40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{{ $bkg := "" }}
{{ if gt (len .Params.images) 0 }}
{{ $bkgImage := print (index .Params.images 0) }}
{{ $bkgURL := printf "%s%s" $.Site.BaseURL $bkgImage }}
{{ $bkg = printf "%s%s%s" "background-image: url('" $bkgURL "');"}}
{{ end }}
<section class="hero bkg-image" style="{{ safeCSS $bkg }}" id="hero">
<!-- Content -->
{{ .Content }}
<!-- CTA -->
{{ if $.Site.Params.cta.show }}
{{ partial "cta.html" . }}
{{ end }}
</section>
|