From fe6038ac4f14f9b49275bb898483fe122be62168 Mon Sep 17 00:00:00 2001 From: vvzen <10340139+vvzen@users.noreply.github.com> Date: Sun, 9 Jun 2024 11:25:34 +0200 Subject: [PATCH 1/7] feat: Show RSS icon if config enables it This adds support for showing a tiny RSS svg badge in the top menu in case the user added a menu_item that looks like this: `{name = "", url = "$BASE_URL/$FEED_FILENAME"}` This also requires that the user has a config.toml that contains the following entries: generate_feed = true feed_filename = "rss.xml" author = "your name here" --- templates/macros/menu.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/templates/macros/menu.html b/templates/macros/menu.html index 090388f..90cd50e 100644 --- a/templates/macros/menu.html +++ b/templates/macros/menu.html @@ -38,11 +38,26 @@
From d12ae1a0662fab9a94d9360217a2c2397210b0f2 Mon Sep 17 00:00:00 2001 From: vvzen <10340139+vvzen@users.noreply.github.com> Date: Sun, 9 Jun 2024 11:25:35 +0200 Subject: [PATCH 2/7] feat: Also gate on config.generate_feed --- templates/macros/menu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros/menu.html b/templates/macros/menu.html index 90cd50e..347087d 100644 --- a/templates/macros/menu.html +++ b/templates/macros/menu.html @@ -48,7 +48,7 @@ {%- set is_rss = item.url == "$BASE_URL/$FEED_FILENAME" -%} - {%- if is_rss %} + {%- if is_rss and config.generate_feed %}