Update sitemap.sh
This commit is contained in:
@@ -4,7 +4,7 @@ set -eu
|
||||
|
||||
main() {
|
||||
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>'
|
||||
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>"
|
||||
@@ -12,5 +12,4 @@ main() {
|
||||
echo '</urlset>'
|
||||
}
|
||||
|
||||
main >sitemap.xml
|
||||
|
||||
main >sitemap.xml
|
||||
Reference in New Issue
Block a user