Update scripts

This commit is contained in:
askiiart 2024-08-26 09:12:25 -05:00
parent e29d3651fd
commit 0c1edcef84
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
3 changed files with 10 additions and 1 deletions

View file

@ -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 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<rss version=\"2.0\">\n\n<channel>\n <title>eng.askiiart.net</title>\n <description>This is the feed for engl.askiiart.net, I guess</description>\n <link>https://askiiart.net</link>\n <lastBuildDate>$(TZ='UTC' date --rfc-2822)</lastBuildDate>" >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

View file

@ -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:

3
sitemap.xml Normal file
View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url><loc>https://engl.askiiart.net/blog/blendos.html</loc></url>
</urlset>