diff options
-rw-r--r-- | layouts/partials/post/gallery.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/image.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/post/gallery.html b/layouts/partials/post/gallery.html index 8ec52e5..220ede6 100644 --- a/layouts/partials/post/gallery.html +++ b/layouts/partials/post/gallery.html @@ -13,7 +13,7 @@ {{ $imageLength := len $image }} <div class="photo-box"> <a class="photo-box-inner fancybox" - data-fancybox-group="gallery-{{ $.File.UniqueID }}" + data-fancybox="gallery-{{ $.File.UniqueID }}" data-caption="{{ if gt $imageLength 2 }}{{ index $image 2 }}{{ else }}{{ index $image 1 }}{{ end }}" title="{{ if gt $imageLength 2 }}{{ index $image 2 }}{{ else }}{{ index $image 1 }}{{ end }}" href="{{ index $image 0 }}" diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index d02e51b..2e92509 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -21,7 +21,7 @@ {{ end }} <div class="figure {{ delimit ($.Scratch.Get "i-classes") " " }}" {{ with (.Get "thumbnailWidth") }}style="width:{{ . }};"{{ end }}> {{ if eq ($.Scratch.Get "i-fancybox") 1 }} - <a class="fancybox" href="{{ .Get "src" }}"{{ with (.Get "title") }} title="{{ . }}"{{ end }} data-fancybox-group="{{ with (.Get "group") }}{{ . }}{{ end }}"> + <a class="fancybox" href="{{ .Get "src" }}"{{ with (.Get "title") }} title="{{ . }}"{{ end }} data-fancybox="{{ with (.Get "group") }}{{ . }}{{ end }}"> {{ end }} <img class="fig-img" src="{{ with (.Get "thumbnail") }}{{ . }}{{ else }}{{ .Get "src" }}{{ end }}" {{ if or (.Get "thumbnail-width") (.Get "thumbnail-height") }}style="{{ with (.Get "thumbnail-width") }}width: {{ . }};{{ end }}{{ with (.Get "thumbnail-height") }}height: {{ . }};{{ end }}"{{ end }}{{ with (.Get "title") }} alt="{{ . }}"{{ end }}> {{ if eq ($.Scratch.Get "i-fancybox") 1 }} |