openvibers/openrestream Commits

A title that names the site is not suffixed again (#187)

OP OpenVibers committed 11 days ago · be31128f70 · 1 file, +2 −1

Changes

ddiff --git a/server/ui/layout.js b/server/ui/layout.js
iindex 01d79a0..6609025 100644
---- a/server/ui/layout.js
++++ b/server/ui/layout.js
@@@ -70,7 +70,8 @@ main.ore .sc-hero,main.ore .sc-sec,main.ore .sc-cta{padding-left:0;padding-right
const DESCRIPTION = 'OpenRestream: go live once from OBS and restream to Twitch, YouTube, Kick and any RTMP or SRT server at once, with OpenVibe Live on by default.';
function renderPage({ title, body, user, canonicalPath = '/', robots = 'noindex,nofollow', config, description = DESCRIPTION, styles = [], jsonLd = null }) {
-- const pageTitle = title ? `${title} · ${SITE}` : `${SITE} — go live once, stream everywhere`;
++ // A title that already names the site is not suffixed again ("What shipped on OpenRestream · OpenRestream").
++ const pageTitle = title ? (title.includes(SITE) ? title : `${title} · ${SITE}`) : `${SITE} — go live once, stream everywhere`;
const canonical = config.baseUrl + canonicalPath;
// Indexable (public) pages are the only ones a crawler shares: they carry the site's card and,
// where the route supplies one, JSON-LD. The signed-in owner pages stay noindex with neither.