forked from purplebored/purplebored.pl
14 lines
364 B
Bash
Executable file
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
|