Hello! Long-time Hugo user and generally Big Fan™, but first time posting to the forum.
I have a site that is being maintained with Netlify CMS (both for uploading images and for editing markdown with a WYSWIG), so that’s a constraint I’m under.
One of the things I’d like is fingerprinting images that are defined in markdown content pages (e.g.
!(/some/path/test-image.jpg), where the image file resides in
assets/some/path/test-image.jpg). I need to specify the images this way (as opposed to with a shortcode), because WYSIWIG markdown editors can help users upload and set images in markdown, but don’t know anything about Hugo specific templating.
I expected this to work with Hugo scanning markdown for image syntax and then doing a
Resources.Get under the covers such that the file reference is detected at build-time and a fingerprint is automatically added to the asset and the URL updated in the resulting HTML.
But as far as I can tell is that none of this happens, and if you want fingerprints on images referenced in markdown posts, you must break out of pure markdown and use a shortcode.
Am I way off base here or is this a thing Hugo doesn’t do?