diff --git a/layouts/partials/header/site-header.html b/layouts/partials/header/site-header.html index c95cf66..67b149e 100644 --- a/layouts/partials/header/site-header.html +++ b/layouts/partials/header/site-header.html @@ -1,23 +1,24 @@ {{ if .IsHome }}
+ {{ if .Site.Params.swiperCount }}
- {{ if .Site.Params.swiperCount }} {{ range $idx, $seq := (seq .Site.Params.swiperCount) }}
{{ partial (print "header/slide-" $seq) . }}
{{ end }} - {{ end }}
+ {{ end }}
+{{ if .Site.Params.swiperCount }} @@ -27,5 +28,6 @@ var mySwiper = new Swiper('.swiper-container', options); +{{ end }} {{ end }} \ No newline at end of file