fix sitemap
This commit is contained in:
parent
bff919c757
commit
2bcfba0fa4
1 changed files with 1 additions and 1 deletions
|
@ -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', '');
|
||||
|
|
Loading…
Reference in a new issue