purplebored.pl/sitemap.sh
Arija A. cb76730bf3
Exclude template.xhtml from being indexed
Signed-off-by: Arija A. <ari@ari.lt>
2025-10-14 17:37:06 +03:00

14 lines
364 B
Bash
Executable file

#!/bin/sh
set -eu
main() {
echo '<urlset>'
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