Update sitemap.sh
This commit is contained in:
1 parent
669656f163
commit
29337c8c2a
1 file changed
+2
-3
+2
-3
@@ -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