openvibers/openvibe.reviews Commits
Reviews: the front page's title says what the site is (#49)
Changes
@@@ -64,7 +64,8 @@ function navConfig(o, config) {function renderPage(o) {const { config } = o;if (!o.robots && !o.decision) throw new TypeError('renderPage needs explicit robots (or the gate decision)');-- const title = o.title ? `${o.title} · ${SITE_NAME}` : SITE_NAME;++ // The front page's title says what the site is (search results show it); every other page is "<page> · OpenVibe.Reviews".++ const title = o.title ? `${o.title} · ${SITE_NAME}` : o.path === '/' ? `${SITE_NAME}: ratings from named, linked sources` : SITE_NAME;const feeds = [{ type: 'atom', title: `${SITE_NAME}: published summaries (Atom)`, href: '/feed.atom' },{ type: 'json', title: `${SITE_NAME}: published summaries (JSON Feed)`, href: '/feed.json' },
@@ -64,7 +64,8 @@ function navConfig(o, config) {
@@ -64,7 +64,8 @@ function navConfig(o, config) {
function renderPage(o) {
function renderPage(o) {
const { config } = o;
const { config } = o;
if (!o.robots && !o.decision) throw new TypeError('renderPage needs explicit robots (or the gate decision)');
if (!o.robots && !o.decision) throw new TypeError('renderPage needs explicit robots (or the gate decision)');
- const title = o.title ? `${o.title} · ${SITE_NAME}` : SITE_NAME;
+ // The front page's title says what the site is (search results show it); every other page is "<page> · OpenVibe.Reviews".
+ const title = o.title ? `${o.title} · ${SITE_NAME}` : o.path === '/' ? `${SITE_NAME}: ratings from named, linked sources` : SITE_NAME;
const feeds = [
const feeds = [
{ type: 'atom', title: `${SITE_NAME}: published summaries (Atom)`, href: '/feed.atom' },
{ type: 'atom', title: `${SITE_NAME}: published summaries (Atom)`, href: '/feed.atom' },
{ type: 'json', title: `${SITE_NAME}: published summaries (JSON Feed)`, href: '/feed.json' },
{ type: 'json', title: `${SITE_NAME}: published summaries (JSON Feed)`, href: '/feed.json' },