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.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/layouts/partials/carousel.html b/layouts/partials/carousel.html
index e614773..be6c6f0 100644
--- a/layouts/partials/carousel.html
+++ b/layouts/partials/carousel.html
@@ -1,11 +1,13 @@
-{{ if isset .Site.Params "carousel" }}
-{{ if .Site.Params.carousel.enable }}
+{{ if default true .Site.Params.CarouselHomepage.enable }}
{{ if gt (len .Site.Data.carousel) 0 }}
<section>
<div class="home-carousel">
<div class="dark-mask"></div>
<div class="container">
- <div class="homepage owl-carousel">
+ <div class="homepage owl-carousel"
+ data-autoplay="{{ default true .Site.Params.CarouselHomepage.auto_play }}"
+ data-slide-speed="{{ default 2000 .Site.Params.CarouselHomepage.slide_speed }}"
+ data-pagination-speed="{{ default 1000 .Site.Params.CarouselHomepage.pagination_speed }}">
{{ range sort .Site.Data.carousel "weight" }}
<div class="item">
<div class="row">
@@ -26,4 +28,3 @@
</section>
{{ end }}
{{ end }}
-{{ end }}