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

What parameters in config.tomlor which files in /layoutscontrol the generation index.xml?

When I check my Atom feed, I get a number of errors, almost all due to links that are not full links.

https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Ftaraskaduk.com%2Findex.xml

Example:

 <title>My first shiny app: calculating your hourly rate as a consultant</title>
 <link>/post/2018-01-shiny-rate/shiny_rate/</link>
 <pubDate>Sat, 13 Jan 2018 00:00:00 +0000</pubDate>

I understand that a full link is being requested, i.e. https://taraskaduk.com/post/2018-01-shiny-rate/shiny_rate/

How do I manage this?

Also, is there a way to pass an entire post to Atom, and not just a description?

+4
source share
1 answer
  • You need to complete baseURLthe config.toml(see Section 2.2 blogdown );
  • Github Netlify ( 3.1). public/ . . , public/ , blogdown::hugo_build() ( 1.7).

RSS- URL-, . D.3 ( : baseurl = "/").

+5

Source: https://habr.com/ru/post/1692612/


All Articles