Преглед изворни кода

feat(shortcode): enable figure lightbox by default

Add "lightbox"="false" to shortcode args to disable
George Cushen пре 6 година
родитељ
комит
72a5e5b8c0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      layouts/shortcodes/figure.html

+ 1 - 1
layouts/shortcodes/figure.html

@@ -3,7 +3,7 @@
 {{ if .Get "library" }}
 {{ if .Get "library" }}
   {{ $image_src = printf "img/%s" $image_src | relURL }}
   {{ $image_src = printf "img/%s" $image_src | relURL }}
 {{ end }}
 {{ end }}
-{{ $lightbox := eq (.Get "lightbox" | default "false") "true" }}
+{{ $lightbox := eq (.Get "lightbox" | default "true") "true" }}
 {{ $group := .Get "lightbox-group" | default "" }}
 {{ $group := .Get "lightbox-group" | default "" }}
 
 
 <figure{{ with .Get "class" }} class="{{.}}"{{ end }}>
 <figure{{ with .Get "class" }} class="{{.}}"{{ end }}>