diff options
Diffstat (limited to 'layouts/shortcodes/image.html')
-rw-r--r-- | layouts/shortcodes/image.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |