Переглянути джерело

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" }}
   {{ $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 }}>