Host Hugo blog on subdirectory - RSS links do not work

I am hosting my Hugo site (blog) on a subdirectory (remkoduursma.github.io/blog).

I have set my publishDir in the config file to the repository for that page ([absolute path]/remkoduursma.github.io/blog).

The page loads fine, but the links in the RSS are not correct: they end up pointing to, for example remkoduursma.github.io/2017/04/... instead of remkoduursma.github.io/blog/2017/....

Additionally my Disqus plugin isn’t loading, and inspecting the html for the content pages, it seems the blog/ bit is missing there also (maybe this is a separate problem).

The repository with the source for the blog is here: github.com/RemkoDuursma/remkoduursmablog, the repos with the generated content is here: github.com/RemkoDuursma/remkoduursma.github.io (under blog).

PS I am using blogdown to generate the content pages (https://github.com/rstudio/blogdown).

Many thanks for your help!

Remko