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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/carousel.html')
-rw-r--r--layouts/partials/carousel.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/carousel.html b/layouts/partials/carousel.html
index 5d0e42b..e3b25c5 100644
--- a/layouts/partials/carousel.html
+++ b/layouts/partials/carousel.html
@@ -1,4 +1,5 @@
{{ if default true .Site.Params.CarouselHomepage.enable }}
+{{ if isset .Site.Data "carousel" }}
{{ if gt (len .Site.Data.carousel) 0 }}
<section>
<div class="home-carousel">
@@ -34,3 +35,4 @@
</section>
{{ end }}
{{ end }}
+{{ end }}