parent
2c861f868a
commit
22bad851e0
13
index.js
13
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/",
|
||||
|
Loading…
x
Reference in New Issue
Block a user