diff --git a/layouts/shortcodes/paige/gallery.html b/layouts/shortcodes/paige/gallery.html index 938303ad..c8e111e2 100644 --- a/layouts/shortcodes/paige/gallery.html +++ b/layouts/shortcodes/paige/gallery.html @@ -12,6 +12,10 @@ {{ $inner := chomp .Inner }} {{ $resources := slice }} +{{ if and (not $images) (not $inner) }} + {{ errorf "paige/gallery: no content specified" }} +{{ end }} + {{ if not $inner }} {{ with $images }} {{ with $.Page.Resources.Match . }}