parent
0bde4eb0d1
commit
d5f71fa043
4
index.js
4
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user