fix sitemap

This commit is contained in:
vcoppe
2024-07-08 19:17:03 +02:00
parent bff919c757
commit 2bcfba0fa4

View File

@@ -6,7 +6,7 @@ function generateSitemap() {
const pages = glob.sync('*.html', { cwd: 'build' });
let sitemap = '<?xml version="1.0" encoding="UTF-8"?>\n';
sitemap += '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> xmlns:xhtml="http://www.w3.org/1999/xhtml">\n';
sitemap += '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">\n';
pages.forEach((page) => {
const url = page.replace('.html', '').replace('index', '');