aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/hero.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/terrassa/layouts/partials/hero.html')
-rw-r--r--themes/terrassa/layouts/partials/hero.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/terrassa/layouts/partials/hero.html b/themes/terrassa/layouts/partials/hero.html
new file mode 100644
index 0000000..138d674
--- /dev/null
+++ b/themes/terrassa/layouts/partials/hero.html
@@ -0,0 +1,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> \ No newline at end of file