You need to create link and image render hooks for the rss
output format that produce absolute instead of relative URLs.
You also need link and image render hooks for the html
output format, and the easiest way to do that is to enable the embedded link render hook and the embedded image render hook.
Here’s a working example:
git clone --single-branch -b hugo-forum-topic-50428 https://github.com/jmooring/hugo-testing hugo-forum-topic-50428
cd hugo-forum-topic-50428
hugo server
Files of interest:
- layouts/_default/_markup/render-link.rss.xml
- layouts/_default/_markup/render-image.rss.xml
- layouts/_default/rss.xml
- hugo.toml
The files above are minimally modified copies of the embedded templates of the same name:
- https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/_markup/render-link.html
- https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/_markup/render-image.html -
- https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml