From d5f71fa0430bdf4facd141b1e4262f08a361deed Mon Sep 17 00:00:00 2001 From: David <alazyreader@noreply.localhost> Date: Sun, 23 Mar 2025 19:09:52 +0000 Subject: [PATCH] correct canonical and sitemap with www --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1d6dab6..1e8248d 100644 --- a/index.js +++ b/index.js @@ -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,