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-13 20:06:19 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-01-13 20:06:19 +0300
commitccf672d5f3ba4158eb10cd21b6f9f9fd2c47f678 (patch)
treeadbc85ce8ac6a2015bf09db2e0b0e139affab445 /layouts
parent0fb7aece1e7c64f223ecc9b3bdc54be9a9ce4812 (diff)
fix issue #2v1.6.2
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/hero.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index 942781b..313831f 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -1,6 +1,5 @@
-{{ $bkg := index $.Params.images 0 }}
-
-<main class="hero" style="background-image: url('{{ $.Site.BaseURL }}images/{{ print $bkg }}');">
+<main class="hero" {{ if $.Params.images }} style="background-image: url('{{ $.Site.BaseURL }}images/{{ print (index $.Params.images 0) }}');"
+ {{ end }}>
<div class="hero__caption">
{{ .Content }}
{{ if .Site.Params.cta.show }}