mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-26 18:24:22 +01:00
Add: Image popup & 3 try to fix art carousel
This commit is contained in:
parent
0a84126fb0
commit
af34c8adb9
1 changed files with 14 additions and 9 deletions
|
@ -18,18 +18,23 @@
|
|||
|
||||
</div>
|
||||
<div id="ArtCarousel" class="wow fadeInUp center-block" data-wow-duration="500ms" data-wow-delay="100ms">
|
||||
{{ $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" }}
|
||||
<div class="item item-center">
|
||||
<img class="img-fluid AC-img" data-lazy="{{ $thumb.RelPermalink }}" alt="{{ .name }}" title="{{ .name }}">
|
||||
</div>
|
||||
{{ $image := $original.Fit "1080x1080" }}
|
||||
<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 }}">
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{/* {{ $image_thumb := $image_thumb | append .image_thumb }} */}}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue