diff --git a/src/_config/shortcodes/image.js b/src/_config/shortcodes/image.js index e1eed56..55aff34 100644 --- a/src/_config/shortcodes/image.js +++ b/src/_config/shortcodes/image.js @@ -21,6 +21,11 @@ export const imageShortcode = async ( sizes = 'auto', formats = ['avif', 'webp', 'jpeg'] ) => { + // Prepend "./src" if not present + if (!src.startsWith('./src')) { + src = `./src${src}`; + } + const metadata = await Image(src, { widths: [...widths], formats: [...formats],