Fail if image src is empty

This commit is contained in:
Will Faught
2023-03-04 11:02:07 -08:00
parent 2a89e99534
commit bfb3e90505

View File

@@ -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"