diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 9c3c9a7..1aa9839 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -4,6 +4,8 @@ {{- $img = resources.Get $path -}} {{- end -}} -{{- with $img -}} +{{- if $img -}} {{ $.Text }} +{{- else -}} + {{- warnf "No image found for %s from %s" .Destination .Page.File }} {{- end -}}