Add: Image popup & 3 try to fix art carousel

This commit is contained in:
Aroy-Art 2023-02-14 15:51:38 +01:00
parent 0a84126fb0
commit af34c8adb9
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -18,18 +18,23 @@
</div> </div>
<div id="ArtCarousel" class="wow fadeInUp center-block" data-wow-duration="500ms" data-wow-delay="100ms"> <div id="ArtCarousel" class="wow fadeInUp center-block" data-wow-duration="500ms" data-wow-delay="100ms">
{{ $images := slice }} {{/* {{ $images := slice }}
{{ $image_thumb := slice }} {{ $image_thumb := slice }} */}}
{{ range .portfolio_categories }} {{ range .portfolio_categories }}
{{ range .portfolio_items }} {{ range .portfolio_items }}
{{ $images = $images | append .image }} {{ if eq .slideshow true }}
{{ $image_thumb := $image_thumb | append .image_thumb }} {{/* {{ $images = $images | append .image }} */}}
{{- $original := resources.Get .image -}} {{- $original := resources.Get .image -}}
{{ $thumb := $original.Resize "x320" }} {{ $thumb := $original.Resize "x320" }}
<div class="item item-center"> {{ $image := $original.Fit "1080x1080" }}
<img class="img-fluid AC-img" data-lazy="{{ $thumb.RelPermalink }}" alt="{{ .name }}" title="{{ .name }}"> <a class="item item-center image-popup-gallery" data-mfp-src="{{ $image.RelPermalink }}">
</div> <img class="img-fluid AC-img" data-lazy="{{ $thumb.RelPermalink }}" onerror='this.onerror=null,this.src="{{ $thumb.RelPermalink }}"' alt="{{ .name }}" title="{{ .name }}">
</a>
{{ end }}
{{/* {{ $image_thumb := $image_thumb | append .image_thumb }} */}}
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>