15 lines
No EOL
465 B
Bash
Executable file
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 |