Hi,
I’m currently implementing srcset attributes for all images in of my Hugo sites and I would like to use something like a function or shortcode which gets a few variables and outputs the HTML srcset code.
My first try was using the Hugo shortcodes, but unfortunately they are only working in content-files and not in layout-files. The next one was using partials, but they can’t access multiple paramaters.
Has anyone build something similar or is there a way to use shortcodes in layout-files?
Thanks