diff --git a/config.toml b/config.toml index 8ee7bf2..21054eb 100644 --- a/config.toml +++ b/config.toml @@ -16,8 +16,8 @@ taxonomies = [ {name = "tags", feed = true, paginate_by=10}, ] -generate_feed = true -feed_filename = "rss.xml" +generate_feeds = true +feed_filenames = ["rss.xml"] [search] # Options specific to elasticlunr search. # index format can be: elasticlunr_json or elasticlunr_javascript diff --git a/templates/base.html b/templates/base.html index 209a5bd..8e07244 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,10 +11,11 @@
{%- include "partials/head.html" %} - {#- Rss / Atom Feed #} + {#- Rss / Atom Feed - using new feed_filenames config #} {%- block rss %} - {%- if config.generate_feed %} - + {%- if config.generate_feeds %} + {%- set feed_file = config.feed_filenames | first %} + {%- endif %} {%- endblock rss %} diff --git a/templates/partials/head.html b/templates/partials/head.html index b3916d0..c665b9b 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -115,4 +115,10 @@ {%- endif %} +{#- Rss / Atom Feed - using new feed_filenames config #} + {%- if config.generate_feeds %} + {%- set feed_file = config.feed_filenames | first %} + + {%- endif %} + {#- End of head partial -#}