From 315f0923d3e641855e00c7538543c46f50ab3534 Mon Sep 17 00:00:00 2001
From: vvzen <10340139+vvzen@users.noreply.github.com>
Date: Sun, 9 Jun 2024 11:25:38 +0200
Subject: [PATCH] feat: Support atom rss too
---
templates/macros/menu.html | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/templates/macros/menu.html b/templates/macros/menu.html
index 0d9ee3a..d35d9f8 100644
--- a/templates/macros/menu.html
+++ b/templates/macros/menu.html
@@ -47,7 +47,14 @@
{%- set is_rss = item.url == "$BASE_URL/$FEED_FILENAME" -%}
{%- if is_rss and config.generate_feed %}
-
+
+ {%- if config.feed_filename == "rss.xml" %}
+ {% set feed_type = 'rss+xml' %}
+ {%- else %}
+ {% set feed_type = 'atom+xml' %}
+ {% endif -%}
+
+