diff --git a/layouts/shortcodes/paige/image.html b/layouts/shortcodes/paige/image.html index b80a8197..c3192996 100644 --- a/layouts/shortcodes/paige/image.html +++ b/layouts/shortcodes/paige/image.html @@ -10,6 +10,10 @@ {{ $title := .Get "title" }} {{ $width := .Get "width" }} +{{ if not $src }} + {{ errorf "invalid src: %q" $src }} +{{ end }} + {{ $content := partial "paige/img.html" (dict "alt" $alt "class" "img-fluid"