Typo in _generate_sitemap

This commit is contained in:
Stig-Ørjan Smelror 2024-01-30 16:29:03 +01:00
parent 10c58a7dc5
commit b56da741f0

2
qsgen2
View File

@ -621,7 +621,7 @@ function _generate_sitemap() {
# Add each URL to the sitemap # Add each URL to the sitemap
for file in "${html_files[@]}"; do for file in "${html_files[@]}"; do
# Remove www_root from the path and prepend site_url # Remove www_root from the path and prepend site_url
local url="${site_url}/${file#$www_root}" local url="${site_url}${file#$www_root}"
echo " <url>" >> "${sitemap_file}" echo " <url>" >> "${sitemap_file}"
echo " <loc>${url}</loc>" >> "${sitemap_file}" echo " <loc>${url}</loc>" >> "${sitemap_file}"