From 0c1edcef8425aa719cdd70037fa0512b2f32ff18 Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 26 Aug 2024 09:12:25 -0500 Subject: [PATCH] Update scripts --- generate-rss.sh | 6 +++++- regex-chicanery.py | 2 ++ sitemap.xml | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sitemap.xml diff --git a/generate-rss.sh b/generate-rss.sh index 40b688b..6ed0b02 100755 --- a/generate-rss.sh +++ b/generate-rss.sh @@ -3,9 +3,13 @@ # Makes RSS feed (feed.xml) # Currently missing description and pubDate # Based off https://en.wikipedia.org/wiki/RSS, particularly the example + +# TODO: update to get metadata from another file, or maybe to automatically extract it from the Markdown or HTML files +# TODO: Add dates for each page via Git history + printf "\n\n\n\n eng.askiiart.net\n This is the feed for engl.askiiart.net, I guess\n https://askiiart.net\n $(TZ='UTC' date --rfc-2822)" >feed.xml find . -path ./error -prune -o -name '*.html' -print | while read -r item; do - # Skip template.html, wishlist.html, resume.html, and portfolio.html + # Skip template.html and index.html if [[ ${item} == "./index.html" || ${item} == "./template.html" ]]; then continue fi diff --git a/regex-chicanery.py b/regex-chicanery.py index bdb1fc6..7f3a484 100644 --- a/regex-chicanery.py +++ b/regex-chicanery.py @@ -2,6 +2,8 @@ import re import sys +# TODO: rewrite in bash + # add title attribute to img tags filename = sys.argv[1] with open(filename, 'r+') as f: diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..57abda1 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,3 @@ + +https://engl.askiiart.net/blog/blendos.html +