Update sitemap.sh
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
echo '<?xml version="1.0" encoding="UTF-8"?>'
|
||||||
echo '<urlset>'
|
echo '<urlset>'
|
||||||
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
|
||||||
@@ -12,3 +13,4 @@ main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main >sitemap.xml
|
main >sitemap.xml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user