openvibers/openvibe.shoes Commits
open.shoes: the right name in the navbar, and the home in the page's width (#2)
Changes
@@@ -53,6 +53,8 @@ function layout(o) {const canonical = o.canonical === undefined ? `${String(config.baseUrl).replace(/\/+$/, '')}${pathNow.split('?')[0]}` : o.canonical;const navbar = {service: 'shoes',++ // open.shoes is not an openvibe.<tld> host, so the navbar cannot read the name from it (it said OpenVibe.Network).++ brand: { tld: 'shoes', tldLabel: 'Shoes' },apiBase: NETWORK_URL,links: NAV.map((l) => ({ ...l, active: l.href === active || (l.href !== '/' && pathNow.startsWith(`${l.href}/`)) })),appBar: [@@@ -287,7 +287,9 @@ function home({ facets = {}, dropping = [], dropsToday = [], popular = [], curveconst railAt = body.indexOf('<section class="ovk-rail');const sceneAt = body.indexOf('<section class="sc-room-scenes"');const at = railAt >= 0 ? railAt : sceneAt;-- return at < 0 ? `${body}${priceDropSection}` : `${body.slice(0, at)}${priceDropSection}${body.slice(at)}`;++ // The home sits in the page's width like every other page (it ran edge to edge, 10-31).++ const page = at < 0 ? `${body}${priceDropSection}` : `${body.slice(0, at)}${priceDropSection}${body.slice(at)}`;++ return `<div class="sh-wrap sh-home">${page}</div>`;}// ── Search ──────────────────────────────────────────────────
@@ -53,6 +53,8 @@ function layout(o) {
@@ -53,6 +53,8 @@ function layout(o) {
const canonical = o.canonical === undefined ? `${String(config.baseUrl).replace(/\/+$/, '')}${pathNow.split('?')[0]}` : o.canonical;
const canonical = o.canonical === undefined ? `${String(config.baseUrl).replace(/\/+$/, '')}${pathNow.split('?')[0]}` : o.canonical;
const navbar = {
const navbar = {
service: 'shoes',
service: 'shoes',
+ // open.shoes is not an openvibe.<tld> host, so the navbar cannot read the name from it (it said OpenVibe.Network).
+ brand: { tld: 'shoes', tldLabel: 'Shoes' },
apiBase: NETWORK_URL,
apiBase: NETWORK_URL,
links: NAV.map((l) => ({ ...l, active: l.href === active || (l.href !== '/' && pathNow.startsWith(`${l.href}/`)) })),
links: NAV.map((l) => ({ ...l, active: l.href === active || (l.href !== '/' && pathNow.startsWith(`${l.href}/`)) })),
appBar: [
appBar: [
@@ -287,7 +287,9 @@ function home({ facets = {}, dropping = [], dropsToday = [], popular = [], curve
@@ -287,7 +287,9 @@ function home({ facets = {}, dropping = [], dropsToday = [], popular = [], curve
const railAt = body.indexOf('<section class="ovk-rail');
const railAt = body.indexOf('<section class="ovk-rail');
const sceneAt = body.indexOf('<section class="sc-room-scenes"');
const sceneAt = body.indexOf('<section class="sc-room-scenes"');
const at = railAt >= 0 ? railAt : sceneAt;
const at = railAt >= 0 ? railAt : sceneAt;
- return at < 0 ? `${body}${priceDropSection}` : `${body.slice(0, at)}${priceDropSection}${body.slice(at)}`;
+ // The home sits in the page's width like every other page (it ran edge to edge, 10-31).
+ const page = at < 0 ? `${body}${priceDropSection}` : `${body.slice(0, at)}${priceDropSection}${body.slice(at)}`;
+ return `<div class="sh-wrap sh-home">${page}</div>`;
}
}
// ── Search ──────────────────────────────────────────────────
// ── Search ──────────────────────────────────────────────────