mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 10:24:22 +01:00
Compare commits
No commits in common. "980825f55e92c1e27d4894ba252c90a14f75e355" and "0a84126fb07afeb64f2a206a408a3fe31a3dca62" have entirely different histories.
980825f55e
...
0a84126fb0
2 changed files with 10 additions and 27 deletions
|
@ -101,7 +101,7 @@ jQuery(function ($) {
|
|||
/* ========================================================================= */
|
||||
/* Magnific popup
|
||||
/* ========================================================================= */
|
||||
$('.image-popup-gallery').magnificPopup({
|
||||
$('.image-popup').magnificPopup({
|
||||
type: 'image',
|
||||
removalDelay: 160, //delay removal by X to allow out-animation
|
||||
callbacks: {
|
||||
|
@ -111,9 +111,6 @@ jQuery(function ($) {
|
|||
this.st.mainClass = this.st.el.attr('data-effect');
|
||||
}
|
||||
},
|
||||
gallery:{
|
||||
enabled:true
|
||||
},
|
||||
closeOnContentClick: true,
|
||||
midClick: true,
|
||||
fixedContentPos: false,
|
||||
|
|
|
@ -18,32 +18,18 @@
|
|||
|
||||
</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 }}
|
||||
{{ if eq .slideshow true }}
|
||||
{{/* {{ $images = $images | append .image }} */}}
|
||||
|
||||
{{- $original := resources.Get .image -}}
|
||||
{{ $thumb := $original.Resize "x320" }}
|
||||
{{ $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 }}">
|
||||
<img class="img-fluid AC-img" data-lazy="{{ $thumb.RelPermalink }}" onerror='this.onerror=null,this.src="{{ $thumb.RelPermalink }}"' alt="{{ .name }}" title="{{ .name }}">
|
||||
</a>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* {{ $image_thumb := $image_thumb | append .image_thumb }} */}}
|
||||
{{ $images = $images | append .image }}
|
||||
{{ $image_thumb := $image_thumb | append .image_thumb }}
|
||||
|
||||
{{- $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>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue