remove priority and changefreq from sitemap
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
13
index.js
13
index.js
@@ -192,7 +192,7 @@ readFile("./index.tmpl.html", function (err, data) {
|
|||||||
cpSync("./img", "./build/img", { recursive: true });
|
cpSync("./img", "./build/img", { recursive: true });
|
||||||
cpSync("./stores.json", "./build/stores.json");
|
cpSync("./stores.json", "./build/stores.json");
|
||||||
|
|
||||||
let pages = [{ url: `/`, changefreq: "weekly", priority: 1.0 }];
|
let pages = [{ url: `/` }];
|
||||||
|
|
||||||
stores.forEach((store) => {
|
stores.forEach((store) => {
|
||||||
$("#selected").html(SelectedStoreTemplate(store));
|
$("#selected").html(SelectedStoreTemplate(store));
|
||||||
@@ -201,14 +201,13 @@ readFile("./index.tmpl.html", function (err, data) {
|
|||||||
$("title").html(title);
|
$("title").html(title);
|
||||||
$("meta[name='title']").attr("content", title);
|
$("meta[name='title']").attr("content", 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)}`);
|
mkDir(`./build/${slugify(store.name)}`);
|
||||||
writeFile(`./build/${slugify(store.name)}/index.html`, $.html());
|
writeFile(`./build/${slugify(store.name)}/index.html`, $.html());
|
||||||
pages.push({
|
pages.push({ url: `/${slugify(store.name)}/` });
|
||||||
url: `/${slugify(store.name)}/`,
|
|
||||||
changefreq: "monthly",
|
|
||||||
priority: 0.5,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
simpleSitemapAndIndex({
|
simpleSitemapAndIndex({
|
||||||
hostname: "https://nycbookstores.org/",
|
hostname: "https://nycbookstores.org/",
|
||||||
|
Reference in New Issue
Block a user