openvibers/openvibe.mediahub Commits

Video: openvibe.video's front page title says what the site is (#43)

OP OpenVibers committed 30 days ago · 406ec3deb9 · 1 file, +2 −1

The front page's <title> was the bare site name. It now says what the site is ("OpenVibe.Video: recordings and clips from OpenVibe.Live"), so search results and shared links read like a product. The shared layout cuts titles at 60 characters, so this one is short. Other pages keep "<page> · OpenVibe.Video".

The full suite passes.

Changes

ddiff --git a/server/video/layout.js b/server/video/layout.js
iindex f27c23a..0cf915e 100644
---- a/server/video/layout.js
++++ b/server/video/layout.js
@@@ -35,7 +35,8 @@ const asset = (rel) => `/${rel}?v=${assetVersion(rel)}`;
/** o: title, description, body (html), config, path, index, noindex, viewer, private, crumbs [{label, href}], scripts [rel],
* jsonLd (structured data for the page), image (its share image, an https URL), ogType */
function renderPage(o) {
-- const title = o.title || SITE_NAME;
++ // The front page's title says what the site is (search results show it; at most 60 characters).
++ const title = o.title || (o.path === '/' ? `${SITE_NAME}: recordings and clips from OpenVibe.Live` : SITE_NAME);
const viewer = o.viewer || { kind: 'anonymous' };
const signedIn = viewer.kind === 'user';
const pathNow = o.path || '/';