Exclude template.xhtml from being indexed

Signed-off-by: Arija A. <ari@ari.lt>
This commit is contained in:
2025-10-14 17:37:06 +03:00
parent b76a9dfd98
commit cb76730bf3

View File

@@ -3,12 +3,12 @@
set -eu set -eu
main() { main() {
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' | while read -r file; do 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>" echo "<url><loc>https://purplebored.pl/${file}</loc><priority>1.0</priority></url>"
done done
echo "</urlset>" echo '</urlset>'
} }
main >sitemap.xml main >sitemap.xml