aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/hero.html
blob: 138d6749d53a461804644b753d71a2b9127bddb2 (plain)
1
2
3
4
5
6
7
8
9
10
<main class="hero" {{ if $.Params.images }} style="background-image: url('{{ $.Site.BaseURL }}images/{{ print (index $.Params.images 0) }}');"
    {{ end }}>
    <div class="hero__caption" {{ if $.Site.Params.hero.textColor }} style="color: {{ $.Site.Params.hero.textColor }};"
        {{ end }}>
        {{ .Content }}
        {{ if .Site.Params.cta.show }}
        {{ partial "cta-btn.html" . }}
        {{ end }}
    </div>
</main>