purplebored.pl/sitemap.sh
purplebored 29337c8c2a
All checks were successful
/ stats (push) Successful in 4s
Update sitemap.sh
2025-10-14 17:01:09 +00:00

15 lines
No EOL
465 B
Bash
Executable file

#!/bin/sh
set -eu
main() {
echo '<?xml version="1.0" encoding="UTF-8"?>'
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
echo '<url><loc>https://purplebored.pl/</loc><priority>1.0</priority></url>'
find pages/ blog/ -name '*.xhtml' -not -name 'template.xhtml' | while read -r file; do
echo "<url><loc>https://purplebored.pl/${file}</loc><priority>1.0</priority></url>"
done
echo '</urlset>'
}
main >sitemap.xml