Skip to content

Commit 1d63b2f

Browse files
committed
sitemap fix
1 parent 9f7901e commit 1d63b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/sitemap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getLastModified = (filePath) => {
1919
function writeSitemap(pages) {
2020
const baseUrl = 'https://aqihub.info';
2121
let sitemapContent = '<?xml version="1.0" encoding="UTF-8"?>\n';
22-
sitemapContent += '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n';
22+
sitemapContent += '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">\n';
2323

2424
pages.forEach((page) => {
2525
const filePath = path.join(path.resolve(), 'docs',`${page.path}.md`);

0 commit comments

Comments
 (0)