diff --git a/config.toml b/config.toml index 1fb2065..a540dba 100644 --- a/config.toml +++ b/config.toml @@ -12,12 +12,12 @@ author = "st1020" default_language = "en" # When set to "true", a feed is automatically generated. -generate_feed = true +generate_feeds = true -# The filename to use for the feed. Used as the template filename, too. -# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed. +# The filenames to use for the feeds. Used as the template filenames, too. +# Defaults to ["atom.xml"], which has a built-in template that renders an Atom 1.0 feed. # There is also a built-in template "rss.xml" that renders an RSS 2.0 feed. -feed_filename = "atom.xml" +feed_filenames = ["atom.xml"] # The taxonomies to be rendered for the site and their configuration of the default languages # Example: diff --git a/templates/partials/head.html b/templates/partials/head.html index 73327c2..888839b 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -102,14 +102,15 @@ {% if config.generate_feed %} - {% if config.feed_filename == "atom.xml" %} + {% if "atom.xml" in config.feed_filenames %} - {% elif config.feed_filename == "rss.xml" %} + {% endif %} + {% if "rss.xml" in config.feed_filenames %}