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));
|
$("meta[name='description']").attr("content", metaDescription(store));
|
||||||
$("link[rel='canonical']").attr(
|
$("link[rel='canonical']").attr(
|
||||||
"href",
|
"href",
|
||||||
`https://nycbookstores.org/${slugify(store.name)}/`
|
`https://www.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({ url: `/${slugify(store.name)}/` });
|
pages.push({ url: `/${slugify(store.name)}/` });
|
||||||
});
|
});
|
||||||
simpleSitemapAndIndex({
|
simpleSitemapAndIndex({
|
||||||
hostname: "https://nycbookstores.org/",
|
hostname: "https://www.nycbookstores.org/",
|
||||||
destinationDir: `./build/`,
|
destinationDir: `./build/`,
|
||||||
sourceData: pages,
|
sourceData: pages,
|
||||||
gzip: false,
|
gzip: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user