openvibers/openvibe.rent Commits

Structured data names list items as the page shows them (the release browser check failed the home's list) (#88)

OP OpenVibers committed 21 days ago · 35186170e5 · 2 files, +2 −2

Changes

ddiff --git a/server/homes/pages.js b/server/homes/pages.js
iindex 286a09c..a8e3ba7 100644
---- a/server/homes/pages.js
++++ b/server/homes/pages.js
@@@ -91,7 +91,7 @@ function createHomesRoutes(ctx) {
jsonLd: [
seo.jsonLd.website({ name: 'OpenVibe.Homes', url: base, description: HOMES_SUMMARY }),
seo.jsonLd.webPage({ name: 'OpenVibe.Homes', url: `${base}/`, description: HOMES_SUMMARY, siteUrl: base }),
-- seo.jsonLd.itemList('Median home value in the largest US cities', largest.filter((c) => c.value != null).map((c) => ({ name: `${c.name}, ${c.state}: ${cities.valueText(c.value)}`, url: `${base}${c.path}` })), { url: `${base}/in` }),
++ seo.jsonLd.itemList('Median home value in the largest US cities', largest.filter((c) => c.value != null).map((c) => ({ name: c.name, url: `${base}${c.path}` })), { url: `${base}/in` }),
FAQ.length ? seo.jsonLd.faq(FAQ.map((f) => ({ q: f.question, a: f.answer }))) : null,
],
description: 'Search Zillow, Realtor.com, Redfin, Homes.com, Trulia and Craigslist at once, with HUD and bank homes, home values for 885 cities and county records.',
ddiff --git a/server/http/pages.js b/server/http/pages.js
iindex 3ae84a5..5cd8de4 100644
---- a/server/http/pages.js
++++ b/server/http/pages.js
@@@ -186,7 +186,7 @@ ${notice(p && p.detail ? p.detail : 'You are over the limit for this.', 'warn')}
});
const jsonLd = [
...homeJsonLd(config),
-- seo.jsonLd.itemList('Typical 2-bedroom rent in the largest US cities', largest.filter((c) => c.rent.b2 != null).map((c) => ({ name: `${c.name}, ${c.state}: ${cityList.rentText(c.rent.b2)} a month`, url: `${base()}${c.path}` })), { url: `${base()}/in` }),
++ seo.jsonLd.itemList('Typical 2-bedroom rent in the largest US cities', largest.filter((c) => c.rent.b2 != null).map((c) => ({ name: c.name, url: `${base()}${c.path}` })), { url: `${base()}/in` }),
FAQ.length ? seo.jsonLd.faq(FAQ.map((f) => ({ q: f.question, a: f.answer }))) : null,
];
page(req, res, {