openvibers/openvibe.actor Commits
openvibe.actor's meta description fits a search result (166 characters, now 136) (#99)
Changes
@@@ -81,7 +81,8 @@ function renderPage(o) {title: o.title || `${SITE_NAME}: your agent for everything`,titleSuffix: o.title ? ` · ${SITE_NAME}` : '',siteName: SITE_NAME,-- description: o.description || 'Give a task in plain words: Actor sends it to the best agent for it, OpenVibe\'s own or another platform\'s, checks the result and shows the cost and why. Like OpenRouter, for agents.',++ // At most 160 characters, so search results show it whole.++ description: o.description || 'Give a task in plain words. Actor picks the best agent for it, ours or another platform\'s, checks the answer and shows the cost and why.',canonical,robots: o.index ? 'index, follow' : 'noindex, nofollow',jsonLd: (o.jsonLd || []).filter(Boolean),@@@ -53,6 +53,8 @@ const { boot, check, done } = require('./helpers/boot');assert.ok(shown.length >= 6);assert.deepStrictEqual(ld.find((x) => x['@type'] === 'FAQPage').mainEntity.map((q) => q.name), shown);assert.strictEqual((r.text.match(/<h1[ >]/g) || []).length, 1, 'one h1');++ const description = /<meta name="description" content="([^"]*)"/.exec(r.text)[1].replace(/'/g, "'");++ assert.ok(description.length <= 160, `the description fits a search result (${description.length} characters)`);});await t.close();
@@ -81,7 +81,8 @@ function renderPage(o) {
@@ -81,7 +81,8 @@ function renderPage(o) {
title: o.title || `${SITE_NAME}: your agent for everything`,
title: o.title || `${SITE_NAME}: your agent for everything`,
titleSuffix: o.title ? ` · ${SITE_NAME}` : '',
titleSuffix: o.title ? ` · ${SITE_NAME}` : '',
siteName: SITE_NAME,
siteName: SITE_NAME,
- description: o.description || 'Give a task in plain words: Actor sends it to the best agent for it, OpenVibe\'s own or another platform\'s, checks the result and shows the cost and why. Like OpenRouter, for agents.',
+ // At most 160 characters, so search results show it whole.
+ description: o.description || 'Give a task in plain words. Actor picks the best agent for it, ours or another platform\'s, checks the answer and shows the cost and why.',
canonical,
canonical,
robots: o.index ? 'index, follow' : 'noindex, nofollow',
robots: o.index ? 'index, follow' : 'noindex, nofollow',
jsonLd: (o.jsonLd || []).filter(Boolean),
jsonLd: (o.jsonLd || []).filter(Boolean),
@@ -53,6 +53,8 @@ const { boot, check, done } = require('./helpers/boot');
@@ -53,6 +53,8 @@ const { boot, check, done } = require('./helpers/boot');
assert.ok(shown.length >= 6);
assert.ok(shown.length >= 6);
assert.deepStrictEqual(ld.find((x) => x['@type'] === 'FAQPage').mainEntity.map((q) => q.name), shown);
assert.deepStrictEqual(ld.find((x) => x['@type'] === 'FAQPage').mainEntity.map((q) => q.name), shown);
assert.strictEqual((r.text.match(/<h1[ >]/g) || []).length, 1, 'one h1');
assert.strictEqual((r.text.match(/<h1[ >]/g) || []).length, 1, 'one h1');
+ const description = /<meta name="description" content="([^"]*)"/.exec(r.text)[1].replace(/'/g, "'");
+ assert.ok(description.length <= 160, `the description fits a search result (${description.length} characters)`);
});
});
await t.close();
await t.close();