From 2c861f868ad127ed3108880bd6298ffc089f3b4d Mon Sep 17 00:00:00 2001 From: David Ashby Date: Wed, 19 Mar 2025 09:05:01 -0400 Subject: [PATCH] fix canonical tag --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5e819ef..3748fa9 100644 --- a/index.js +++ b/index.js @@ -200,7 +200,8 @@ readFile("./index.tmpl.html", function (err, data) { let title = TitleTemplate(store); $("title").html(title); $("meta[name='title']").attr("content", title); - $("meta[name='description']").attr("content", metaDescription(store)); + $("meta[name='title']").attr("content", title); + $("link[rel='canonical']").attr("href", `https://nycbookstores.org/${slugify(store.name)}/`); mkDir(`./build/${slugify(store.name)}`); writeFile(`./build/${slugify(store.name)}/index.html`, $.html()); pages.push({