openvibers/openvibe.food Commits

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

OP OpenVibers committed 21 days ago · 77b2ea3691 · 1 file, +1 −1

Changes

ddiff --git a/server/http/pages.js b/server/http/pages.js
iindex a4f6bf8..23e395e 100644
---- a/server/http/pages.js
++++ b/server/http/pages.js
@@@ -149,7 +149,7 @@ ${watchable ? html`<p class="muted small">Watch for changes opens OpenVibe.Watch
description: 'Find food banks and budget grocers, plan cheap meals with the shopping list and its cost, cook from your cupboard and compare delivery apps.',
jsonLd: [
...homeJsonLd(config),
-- seo.jsonLd.itemList('The most food for a dollar on OpenVibe.Food', byKcal.map((f) => ({ name: `${shortName(f)}: ${f.kcal_per_dollar} calories for $1 (typical price)`, url: `${base}/foods/${f.slug}` })), { url: `${base}/foods` }),
++ seo.jsonLd.itemList('The most food for a dollar on OpenVibe.Food', byKcal.map((f) => ({ name: shortName(f), url: `${base}/foods/${f.slug}` })), { url: `${base}/foods` }),
FAQ.length ? seo.jsonLd.faq(FAQ.map((f) => ({ q: f.question, a: f.answer }))) : null,
],
styles: [showcase.STYLESHEET], localStyles: ['css/home.css'],