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

github.com/StaticMania/portio-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbleduigou <jb.leduigou@gmail.com>2020-10-21 22:09:49 +0300
committerjbleduigou <jb.leduigou@gmail.com>2020-10-21 22:09:49 +0300
commitce767d5301ca1971d466577b953bb4d0205764e8 (patch)
tree99426c1c795a336456e107ae043c13ae47f81d24
parentcf794483a541069e0a1d7e539200bf7f1e9008be (diff)
🎨 hide video if none configured
Signed-off-by: jbleduigou <jb.leduigou@gmail.com>
-rw-r--r--layouts/partials/hero.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index cd389e1..2b3fe3d 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -46,6 +46,8 @@
-webkit-mask-size: contain;
-webkit-mask-position: center center;
' />
+
+ {{ if .videoURL }}
<div class="hero_figure-popup">
<div class="thumb">
<img src="{{ .videoThumb }}" alt="popup" />
@@ -58,6 +60,7 @@
</svg>
</a>
</div>
+ {{end}}
</div>
</div>
</div>