diff --git a/layouts/shortcodes/figures/image.html b/layouts/shortcodes/figures/image.html index 95f12ef..89c8aa7 100644 --- a/layouts/shortcodes/figures/image.html +++ b/layouts/shortcodes/figures/image.html @@ -21,6 +21,9 @@
{{ range $img := $imgs }} {{- $linkedImg := $img -}} + {{ if not $img }} + {{ errorf "Found nil in images list for %s" $.Page.Permalink }} + {{ end }} {{- if $shouldResize -}} {{ $linkedImg = $img.Fit "1280x1280" }} {{- end -}}