From 0b6fb425d8a530cf59e10f5d3bc9643f11bcd330 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Mon, 9 May 2022 21:30:40 +0200 Subject: [PATCH] Update: Image slideshow --- assets/js/script.js | 2 +- layouts/index.html | 2 +- layouts/partials/{art_banner.html => imageSlideShow.html} | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) rename layouts/partials/{art_banner.html => imageSlideShow.html} (96%) diff --git a/assets/js/script.js b/assets/js/script.js index 877bb5b..bcc6202 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -141,7 +141,7 @@ jQuery(function ($) { autoplaySpeed: 1500, slidesToShow: 1, slidesToScroll: 1, - lazyLoad: "progressive", + lazyLoad: 'progressive', centerMode: true, variableWidth: true }); diff --git a/layouts/index.html b/layouts/index.html index 229232f..2ed0d88 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,7 +8,7 @@ {{ partial "bradcrumb.html" . }} -{{ partial "art_banner.html" . }} +{{ partial "imageSlideShow.html" . }} {{ partial "blog.html" . }} diff --git a/layouts/partials/art_banner.html b/layouts/partials/imageSlideShow.html similarity index 96% rename from layouts/partials/art_banner.html rename to layouts/partials/imageSlideShow.html index 18c2b92..81a54fe 100644 --- a/layouts/partials/art_banner.html +++ b/layouts/partials/imageSlideShow.html @@ -13,6 +13,10 @@ {{"" | safeHTML}} + +
+ +
{{ $images := slice }} {{ $image_thumb := slice }}