I’m not sure if Hugo has the ability to do this… maybe via a custom module? For specific domains, I’d like to include specific things at the end of a URL, like UTM codes.
A massive search-replace with regex is possible thanks to all content being text, but not adding them to existing content would be ideal so you didn’t have to think about it in the future.
Yup… for example, let’s say I have a podcast (on one site) that promotes my/affiliate products, but I need to reference how they got there. So let’s say I have links in my markdown that point to:
Ideally, I’d have a list of domains (mybusiness.com / affiliatebiz.com) that a post-process looks up and if it finds a URL, it would add the URL parameters to an existing querystring.
The brute force solution, which I can do, but would prefer to avoid, is to write a regex that does a global search & replace, but that only addresses existing content, not new content (that I’ll have to remember to add the URL to).