This commit is contained in:
3
index.js
3
index.js
@@ -200,7 +200,8 @@ readFile("./index.tmpl.html", function (err, data) {
|
|||||||
let title = TitleTemplate(store);
|
let title = TitleTemplate(store);
|
||||||
$("title").html(title);
|
$("title").html(title);
|
||||||
$("meta[name='title']").attr("content", title);
|
$("meta[name='title']").attr("content", title);
|
||||||
$("meta[name='description']").attr("content", metaDescription(store));
|
$("meta[name='title']").attr("content", title);
|
||||||
|
$("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({
|
||||||
|
Reference in New Issue
Block a user