From 728e840dc5af7f3fa52d96642f849aa9d5d422c3 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Wed, 9 Jul 2025 23:51:12 +0200 Subject: [PATCH] make warning ignorable --- config/_default/config.yaml | 1 + layouts/_partials/images/get-image.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -}}