I am trying to write an image render hook that converts the images to data-uris.
As a starting point I’ve used @bep implementation at https://github.com/bep/portable-hugo-links/blob/master/layouts/_default/_markup/render-image.html
Nevertheless my page (here branch) bundles do not find the images when using
.Page.Resources.GetMatch .Destination and default back to the normal behavior.
I am using the latest Hugo version with a Goldmark renderer. The site has a multilang setup, the directory structure is:
content ├── basics ├── requirements ├── _index.en.md ├── magic.gif
Code is available (without the image render hook) at https://github.com/McShelby/hugo-theme-relearn
As so many others are writing about image render hooks and using page resources without having issues, I am sure I am doing something wrong - but what?