parent
e6638e3b42
commit
138c5d84f4
2
index.js
2
index.js
@ -41,7 +41,7 @@ function cleanWebsite(str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function metaDescription({ name, meta, description }) {
|
function metaDescription({ name, meta, description }) {
|
||||||
if (meta.length > 155 || meta.length < 145 && meta.length !== 0) {
|
if (meta && (meta.length > 155 || meta.length < 145 && meta.length !== 0)) {
|
||||||
console.log(`warning: meta tag for ${name} is invalid: 145/${meta.length}/155`)
|
console.log(`warning: meta tag for ${name} is invalid: 145/${meta.length}/155`)
|
||||||
}
|
}
|
||||||
return meta || description.length > 155 ? description.slice(0, 153) + "..." : description || "A guide to and map of every independent bookstore in New York City. We have a complete list of community bookstores in NYC with locations and descriptions."
|
return meta || description.length > 155 ? description.slice(0, 153) + "..." : description || "A guide to and map of every independent bookstore in New York City. We have a complete list of community bookstores in NYC with locations and descriptions."
|
||||||
|
@ -341,7 +341,8 @@
|
|||||||
"country": "USA",
|
"country": "USA",
|
||||||
"website": "https://shop.shakeandco.com/",
|
"website": "https://shop.shakeandco.com/",
|
||||||
"events": "Yes",
|
"events": "Yes",
|
||||||
"cafe": "Yes"
|
"cafe": "Yes",
|
||||||
|
"meta": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Book Culture",
|
"name": "Book Culture",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user