Update sitemap.sh

This commit is contained in:
purplebored
2025-10-14 17:01:09 +00:00
parent 669656f163
commit 29337c8c2a

View File

@@ -4,7 +4,7 @@ set -eu
main() { main() {
echo '<?xml version="1.0" encoding="UTF-8"?>' echo '<?xml version="1.0" encoding="UTF-8"?>'
echo '<urlset>' echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
echo '<url><loc>https://purplebored.pl/</loc><priority>1.0</priority></url>' 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 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>" echo "<url><loc>https://purplebored.pl/${file}</loc><priority>1.0</priority></url>"
@@ -12,5 +12,4 @@ main() {
echo '</urlset>' echo '</urlset>'
} }
main >sitemap.xml main >sitemap.xml