Add sitemap CI/CD

Signed-off-by: Arija A. <ari@ari.lt>
This commit is contained in:
2025-10-14 17:17:56 +03:00
parent 2ab022ca2c
commit cdba088540
2 changed files with 53 additions and 0 deletions

13
sitemap.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
main() {
echo "<urlset>"
find pages/ -name '*.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