mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 12:16:19 +00:00
feat(shortcode): enable figure lightbox by default
Add "lightbox"="false" to shortcode args to disable
This commit is contained in:
1 parent
e9ffc5bd9f
commit
72a5e5b8c0
1 file changed
+1
-1
@@ -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 }}>
|
||||
|
||||
Reference in new issue
Block a user