diff --git a/publichealth/home/templates/home/photo_gallery.html b/publichealth/home/templates/home/photo_gallery.html index 9b1f1a9..a4c75e1 100644 --- a/publichealth/home/templates/home/photo_gallery.html +++ b/publichealth/home/templates/home/photo_gallery.html @@ -18,7 +18,7 @@ {% for val in block.value %}
{% image val.image fill-700x400 as entry_thumb %} - +
{% endfor %} {% endfor %} diff --git a/publichealth/static/js/main.js b/publichealth/static/js/main.js index c3ca638..c4090cb 100644 --- a/publichealth/static/js/main.js +++ b/publichealth/static/js/main.js @@ -39,10 +39,10 @@ $(document).ready(function() { $('.slider-nav').slick({ slidesToShow: 3, slidesToScroll: 1, - infinite: true, - asNavFor: '.carousel-gallery', + infinite: false, centerMode: true, focusOnSelect: true, + asNavFor: '.carousel-gallery', // Responsive settings responsive: [ { @@ -66,10 +66,6 @@ $(document).ready(function() { ], prevArrow: '', nextArrow: '', - }).slickLightbox({ - src: 'data-src', - itemSelector: 'img', - caption: 'caption' });