mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 07:04:23 +01:00
Fix: 4 try to fix art carousel
This commit is contained in:
parent
3c4949c3b3
commit
980825f55e
1 changed files with 12 additions and 3 deletions
|
@ -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 }} */}}
|
||||||
|
|
Loading…
Reference in a new issue