feat(shortcode): enable figure lightbox by default

Add "lightbox"="false" to shortcode args to disable
This commit is contained in:
George Cushen committed 2019-07-23 20:56:40 +01:00
1 parent e9ffc5bd9f
commit 72a5e5b8c0
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@
{{ if .Get "library" }}
{{ $image_src = printf "img/%s" $image_src | relURL }}
{{ end }}
{{ $lightbox := eq (.Get "lightbox" | default "false") "true" }}
{{ $lightbox := eq (.Get "lightbox" | default "true") "true" }}
{{ $group := .Get "lightbox-group" | default "" }}
<figure{{ with .Get "class" }} class="{{.}}"{{ end }}>