14 lines
255 B
Bash
Executable File
14 lines
255 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
main() {
|
|
echo "<urlset>"
|
|
find pages/ blog/ -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
|