From 4a07ca6cb539a579a90fbd37d1b5cb43f658e64a Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sat, 17 Feb 2024 16:10:38 +0200 Subject: [PATCH] Only generate rss feed if rssfeed=true --- noter.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/noter.sh b/noter.sh index 6c9cbb3..ec6a4bd 100755 --- a/noter.sh +++ b/noter.sh @@ -167,9 +167,8 @@ for file in $(ls -r notes/*.txt); do fi done -# generate page's rss feed -# TODO: don't embed to site if not enabled:tm: -generate_rss_feed +# generate page's rss feed if enabled +[[ ${rssfeed} == true ]] && generate_rss_feed # bottom navigation nlog "applying settings"