From 22bad851e0229639ba4029e3c6462ddbe9146734 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Wed, 19 Mar 2025 20:07:30 -0400 Subject: [PATCH] remove priority and changefreq from sitemap --- index.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 3748fa9..6f51a97 100644 --- a/index.js +++ b/index.js @@ -192,7 +192,7 @@ readFile("./index.tmpl.html", function (err, data) { cpSync("./img", "./build/img", { recursive: true }); cpSync("./stores.json", "./build/stores.json"); - let pages = [{ url: `/`, changefreq: "weekly", priority: 1.0 }]; + let pages = [{ url: `/` }]; stores.forEach((store) => { $("#selected").html(SelectedStoreTemplate(store)); @@ -201,14 +201,13 @@ readFile("./index.tmpl.html", function (err, data) { $("title").html(title); $("meta[name='title']").attr("content", title); $("meta[name='title']").attr("content", title); - $("link[rel='canonical']").attr("href", `https://nycbookstores.org/${slugify(store.name)}/`); + $("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({ - url: `/${slugify(store.name)}/`, - changefreq: "monthly", - priority: 0.5, - }); + pages.push({ url: `/${slugify(store.name)}/` }); }); simpleSitemapAndIndex({ hostname: "https://nycbookstores.org/",