Fix: 4 try to fix art carousel

This commit is contained in:
Aroy-Art 2023-02-14 16:20:18 +01:00
parent 3c4949c3b3
commit 980825f55e
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -28,9 +28,18 @@
{{- $original := resources.Get .image -}} {{- $original := resources.Get .image -}}
{{ $thumb := $original.Resize "x320" }} {{ $thumb := $original.Resize "x320" }}
{{ $image := $original.Fit "1080x1080" }} {{ $image := $original.Fit "1080x1080" }}
{{ if eq site.Params.onNetlify true }}
<a class="item item-center image-popup-gallery" data-mfp-src="{{ $image.RelPermalink }}">
<img class="img-fluid AC-img" src="{{ $thumb.RelPermalink }}" onerror='this.onerror=null,this.src="{{ $thumb.RelPermalink }}"' alt="{{ .name }}" title="{{ .name }}">
</a>
{{ else }}
<a class="item item-center image-popup-gallery" data-mfp-src="{{ $image.RelPermalink }}"> <a class="item item-center image-popup-gallery" data-mfp-src="{{ $image.RelPermalink }}">
<img class="img-fluid AC-img" data-lazy="{{ $thumb.RelPermalink }}" onerror='this.onerror=null,this.src="{{ $thumb.RelPermalink }}"' alt="{{ .name }}" title="{{ .name }}"> <img class="img-fluid AC-img" data-lazy="{{ $thumb.RelPermalink }}" onerror='this.onerror=null,this.src="{{ $thumb.RelPermalink }}"' alt="{{ .name }}" title="{{ .name }}">
</a> </a>
{{ end }}
{{ end }} {{ end }}
{{/* {{ $image_thumb := $image_thumb | append .image_thumb }} */}} {{/* {{ $image_thumb := $image_thumb | append .image_thumb }} */}}