From ea2745368593e58fb40d5ca7896951bce60fe357 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 21 Jan 2026 13:47:03 +0100 Subject: [PATCH] update: support multiple feed filenames in config and templates Signed-off-by: Harald Hoyer --- config.toml | 4 ++-- templates/base.html | 7 ++++--- templates/partials/head.html | 6 ++++++ 3 files changed, 12 insertions(+), 5 deletions(-) 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 -#}