diff --git a/config/_default/config.yaml b/config/_default/config.yaml index 710db1b..e724d4b 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -66,3 +66,4 @@ markup: ignoreErrors: - "missing-cite" + - "size-set-on-non-resizable" diff --git a/layouts/_partials/images/get-image.html b/layouts/_partials/images/get-image.html index 6cb94d9..65524db 100644 --- a/layouts/_partials/images/get-image.html +++ b/layouts/_partials/images/get-image.html @@ -33,7 +33,7 @@ {{- warnf "Requested size %s is more than image width %d (%q)" $width $img.Width $img.File.Path -}} {{- end -}} {{- else -}} - {{- warnf "Size set on non-resizable image of type %s; ignoring" $img.MediaType.SubType -}} + {{- warnidf "size-set-on-non-resizable" "Size set on non-resizable image of type %s; ignoring" $img.MediaType.SubType -}} {{- end -}} {{- end -}}