Link cloaker option with Hugo

Hello,

I’ve chosen Hugo over Wordpress but I’d like to use affiliate links in my blog posts, so ugly aff links are not an option. Is there any tool/option/sample code how I can cloak ugly links and show readable “mydomain.com/whatever” links instead? I found couple of pure javascript options, but I think I need to solve this in Hugo.

Many thanks for your tips and hints!

Here’s an example:

git clone --single-branch -b hugo-forum-topic-38231 https://github.com/jmooring/hugo-testing hugo-forum-topic-38231
cd hugo-forum-topic-38231
hugo server
3 Likes