diff --git a/config/_default/config.toml b/config/_default/config.toml index e9a2e825fe02..fe8edbbde8f3 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -13,6 +13,16 @@ enableRobotsTXT = true [outputFormats.RSS] baseName = "rss" +# We set the outputs explicitly to just "HTML" as otherwise they default to both +# "HTML" and "RSS", and we only want to generate RSS for the blog section -- not +# all sections/taxonomies. We enable RSS as an output for the blog section alone +# in the front matter of content/blog/_index.md and have a custom RSS template +# in layouts/blog/rss.xml. +[outputs] + home = ["HTML"] + section = ["HTML"] + taxonomy = ["HTML"] + [taxonomies] author = "authors" tag = "tags" diff --git a/content/blog/_index.md b/content/blog/_index.md index b76c05968fb0..ecabe9d9bbd7 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,5 +1,6 @@ --- title: Blog +outputs: ["html", "rss"] authors: [] tags: [] summary: ""