summaryrefslogtreecommitdiff
path: root/src/indexbody
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-17 16:54:34 -0300
committerEuAndreh <eu@euandre.org>2025-04-17 16:54:34 -0300
commit5841f7119d9bd47a343a15003496449b80ec664b (patch)
tree62ccecda0bfb808a81f2dbdc87b399672b6bebed /src/indexbody
parentsrc/conf: Clear optionally set variables to prevent global values to pollute ... (diff)
downloadmkwb-5841f7119d9bd47a343a15003496449b80ec664b.tar.gz
mkwb-5841f7119d9bd47a343a15003496449b80ec664b.tar.xz
src/indexbody: Add link to Atom feed.xml and to categories page
Diffstat (limited to 'src/indexbody')
-rwxr-xr-xsrc/indexbody12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/indexbody b/src/indexbody
index 0c2edff..7e076fe 100755
--- a/src/indexbody
+++ b/src/indexbody
@@ -12,6 +12,18 @@ eval "$(assert-arg -- "$FILENAME" 'FILENAME.conf')"
. ./"$FILENAME"
+cat <<EOF
+ <p>
+ Atom feed
+ <a href="feed.xml">
+ <source srcset="$feedicon_url_prefix/dark.svg" media="(prefers-color-scheme: dark)" />
+ <img src="$feedicon_url_prefix/light.svg" class="icon"
+ /></a>
+ and feeds by
+ <a href="categories.html">categories</a>.
+ </p>
+EOF
+
printf ' <ol class="collection-list">\n'
cat -- "$SORTDATA" |
xargs cat |