From 2d6d7e6c8963229ba1e16973c8aed7b21d6ef254 Mon Sep 17 00:00:00 2001 From: Brooke <12855764+goingforbrooke@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:41:53 -0700 Subject: [PATCH] Add support for multiple atom/rss feed files --- templates/index.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/templates/index.html b/templates/index.html index 2859c35..f31f29b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,12 +14,17 @@ {%- block open_graph %}{{ head_macros::open_graph(config=config) }}{% endblock open_graph -%} {%- if config.generate_feeds %} - {%- if "rss" in config.feed_filename %} - {% set feed_type = 'rss+xml' %} - {%- else %} - {% set feed_type = 'atom+xml' %} - {% endif -%} - + {%- for feed in config.feed_filenames %} + + {%- if feed is containing('atom') %} + + {%- endif %} + + {%- if feed is containing('rss') %} + + {%- endif %} + + {%- endfor %} {% endif -%} {%- if config.extra.favicon %}