Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-01-16 20:49:15 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-01-16 20:49:22 +0300
commit53f0fc96af2d820aa9f24858778f190047d3f208 (patch)
tree7f61cea593a4cc64901fd335c0c82621796c43dd /layouts
parent739043228f8dd5dcfe49b3e20132d8c0407d6277 (diff)
add hero text color param
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/hero.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index 313831f..138d674 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -1,6 +1,7 @@
<main class="hero" {{ if $.Params.images }} style="background-image: url('{{ $.Site.BaseURL }}images/{{ print (index $.Params.images 0) }}');"
{{ end }}>
- <div class="hero__caption">
+ <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" . }}