diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
index 5d5782e9..867edf78 100644
--- a/layouts/shortcodes/figure.html
+++ b/layouts/shortcodes/figure.html
@@ -3,10 +3,17 @@
{{ if .Get "library" }}
{{ $image_src = printf "img/%s" $image_src | relURL }}
{{ end }}
+{{ $lightbox := eq (.Get "lightbox" | default "false") "true" }}
+{{ $group := .Get "lightbox-group" | default "" }}
+
-{{ if .Get "link"}}{{ end }}
+{{ if $lightbox }}
+
+{{ else if .Get "link"}}
+
+{{ end }}
+
+{{ if or $lightbox (.Get "link") }}{{ end }}
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
{{ $figure := split (i18n "figure" | default "Figure %d:") "%d" }}