jlelse's Blog

Thoughts, stories and ideas

in 💬 Micro
Reply to: A note by Henrique Dias
Share  Subscribe 

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.

33

Jan-Lukas Else
Interactions
You can also create an anonymous comment.