mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 08:24:24 +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>
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in a new issue