aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-30 21:49:19 -0700
committerFuwn <[email protected]>2023-09-30 21:49:19 -0700
commit1afe9d1b2121f286efe30e69668668aa43b732f6 (patch)
treee8f81774619cb3cf859283cd06457b3c2872299d
parentfeat(suzuri): rss generator (diff)
downloadsuzuri-1afe9d1b2121f286efe30e69668668aa43b732f6.tar.xz
suzuri-1afe9d1b2121f286efe30e69668668aa43b732f6.zip
feat(suzuri): add folder if present to feed title
-rwxr-xr-xsuzuri6
1 files changed, 5 insertions, 1 deletions
diff --git a/suzuri b/suzuri
index a14670b..98d4d7d 100755
--- a/suzuri
+++ b/suzuri
@@ -50,10 +50,14 @@ fi
if [[ -n "${SUZURI_RSS}" ]]; then
IFS=$'\n' read -r -d '' -a items <<<"${body}"
+ if [[ -n "${folder}" ]]; then
+ folder_title=" | ${folder}"
+ fi
+
cat <<EOF
<rss version="2.0">
<channel>
- <title>sumi.news</title>
+ <title>sumi.news${folder_title}</title>
<link>https://sumi.news</link>
<description>Read the entire Internet at once – all the news, RSS, and newsletters on one page.</description>
<generator>suzuri</generator>