jlelse’s Blog

Thoughts, stories and ideas

Published on in 💬 Micro
Reply to: A note by Henrique Dias
Short link: https://b.jlel.se/s/1d
Share online Translate
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

That’ll be hard to do with Hugo. There’s no way to tell it to use absolute URLs in the feeds only. I’ll need to set up an extra step of some kind. I’ll check it out.

I use a partial in my Hugo theme to replace relative links with absolute links in the content in XML (RSS) and JSON (JSON Feed, ActivityStream) files. It has a regular expression to find and replace all relative links with their abolute version. It’s probably easy to modify to replace relative image sources too.


Jan-Lukas Else
Interactions & Comments