correct canonical and sitemap with www

This commit is contained in:
David 2025-03-23 19:09:52 +00:00
parent 0bde4eb0d1
commit d5f71fa043

@ -203,14 +203,14 @@ readFile("./index.tmpl.html", function (err, data) {
$("meta[name='description']").attr("content", metaDescription(store));
$("link[rel='canonical']").attr(
"href",
`https://nycbookstores.org/${slugify(store.name)}/`
`https://www.nycbookstores.org/${slugify(store.name)}/`
);
mkDir(`./build/${slugify(store.name)}`);
writeFile(`./build/${slugify(store.name)}/index.html`, $.html());
pages.push({ url: `/${slugify(store.name)}/` });
});
simpleSitemapAndIndex({
hostname: "https://nycbookstores.org/",
hostname: "https://www.nycbookstores.org/",
destinationDir: `./build/`,
sourceData: pages,
gzip: false,