diff --git a/assets/js/script.js b/assets/js/script.js index f9fb09b..aeafa5b 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -101,7 +101,7 @@ jQuery(function ($) { /* ========================================================================= */ /* Magnific popup /* ========================================================================= */ - $('.image-popup').magnificPopup({ + $('.image-popup-gallery').magnificPopup({ type: 'image', removalDelay: 160, //delay removal by X to allow out-animation callbacks: { @@ -111,6 +111,9 @@ jQuery(function ($) { this.st.mainClass = this.st.el.attr('data-effect'); } }, + gallery:{ + enabled:true + }, closeOnContentClick: true, midClick: true, fixedContentPos: false, diff --git a/layouts/partials/imageSlideShow.html b/layouts/partials/imageSlideShow.html index ff96f9f..f85b055 100644 --- a/layouts/partials/imageSlideShow.html +++ b/layouts/partials/imageSlideShow.html @@ -18,18 +18,32 @@
- {{ $images := slice }} - {{ $image_thumb := slice }} + {{/* {{ $images := slice }} + {{ $image_thumb := slice }} */}} {{ range .portfolio_categories }} {{ range .portfolio_items }} - {{ $images = $images | append .image }} - {{ $image_thumb := $image_thumb | append .image_thumb }} + {{ if eq .slideshow true }} + {{/* {{ $images = $images | append .image }} */}} + + {{- $original := resources.Get .image -}} + {{ $thumb := $original.Resize "x320" }} + {{ $image := $original.Fit "1080x1080" }} + + {{ if eq site.Params.onNetlify true }} + + {{ .name }} + + + {{ else }} + + {{ .name }} + + + {{ end }} + {{ end }} + + {{/* {{ $image_thumb := $image_thumb | append .image_thumb }} */}} - {{- $original := resources.Get .image -}} - {{ $thumb := $original.Resize "x320" }} -
- {{ .name }} -
{{ end }} {{ end }}