Control index.xml for Atom/RSS (hugo / blogdown generates feed with relative links)

前端 未结 1 848
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 07:24

Which parameters in config.toml or which files in /layouts control the generation of index.xml?

When I valida

相关标签:
1条回答
  • 2020-12-11 07:58
    1. You need a full baseURL in config.toml (see Section 2.2 of the blogdown book);
    2. I recommend you to publish your website via Github and Netlify (Section 3.1). Don't use the public/ directory build locally on your computer. Build it on the server side instead. If you must build your site locally, every time before you publish the public/ folder, make sure that you run blogdown::hugo_build() (Section 1.7).

    For the reason why your RSS feed contains relative URLs, see Appendix D.3 (short answer: baseurl = "/").

    0 讨论(0)
提交回复
热议问题