openvibers/openvibe.run Commits
Add WebSite + Organization JSON-LD to the home page (#145)
Changes
@@@ -10,6 +10,7 @@* HOME_CSP its Content-Security-Policy (the Frame's scripts and calls to the Network)*/const shell = require('openvibe-shared/shell');++const seo = require('openvibe-shared/seo');const frame = require('openvibe-shared/frame');const showcase = require('openvibe-shared/showcase');const appIcon = require('openvibe-shared/app-icon');@@@ -78,7 +79,7 @@ function renderHome({ config }) {return shell.page({name: SITE_NAME, service: 'run', lang: 'en',title: `${SITE_NAME}: run jobs on your own machine`,-- jsonLd: FAQ.length ? [{ '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: FAQ.map((f) => ({ '@type': 'Question', name: f.q, acceptedAnswer: { '@type': 'Answer', text: f.a } })) }] : undefined,++ jsonLd: [seo.jsonLd.website({ name: SITE_NAME, url: `${config.baseUrl}/`, description: DESCRIPTION }), seo.jsonLd.organization(), ...(FAQ.length ? [{ '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: FAQ.map((f) => ({ '@type': 'Question', name: f.q, acceptedAnswer: { '@type': 'Answer', text: f.a } })) }] : [])],siteName: SITE_NAME, description: DESCRIPTION, summary: DESCRIPTION,canonical: `${config.baseUrl}/`, robots: 'index, follow',agentLayer: true, llms: `${config.baseUrl}/llms.txt`,
@@ -10,6 +10,7 @@
@@ -10,6 +10,7 @@
* HOME_CSP its Content-Security-Policy (the Frame's scripts and calls to the Network)
* HOME_CSP its Content-Security-Policy (the Frame's scripts and calls to the Network)
*/
*/
const shell = require('openvibe-shared/shell');
const shell = require('openvibe-shared/shell');
+const seo = require('openvibe-shared/seo');
const frame = require('openvibe-shared/frame');
const frame = require('openvibe-shared/frame');
const showcase = require('openvibe-shared/showcase');
const showcase = require('openvibe-shared/showcase');
const appIcon = require('openvibe-shared/app-icon');
const appIcon = require('openvibe-shared/app-icon');
@@ -78,7 +79,7 @@ function renderHome({ config }) {
@@ -78,7 +79,7 @@ function renderHome({ config }) {
return shell.page({
return shell.page({
name: SITE_NAME, service: 'run', lang: 'en',
name: SITE_NAME, service: 'run', lang: 'en',
title: `${SITE_NAME}: run jobs on your own machine`,
title: `${SITE_NAME}: run jobs on your own machine`,
- jsonLd: FAQ.length ? [{ '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: FAQ.map((f) => ({ '@type': 'Question', name: f.q, acceptedAnswer: { '@type': 'Answer', text: f.a } })) }] : undefined,
+ jsonLd: [seo.jsonLd.website({ name: SITE_NAME, url: `${config.baseUrl}/`, description: DESCRIPTION }), seo.jsonLd.organization(), ...(FAQ.length ? [{ '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: FAQ.map((f) => ({ '@type': 'Question', name: f.q, acceptedAnswer: { '@type': 'Answer', text: f.a } })) }] : [])],
siteName: SITE_NAME, description: DESCRIPTION, summary: DESCRIPTION,
siteName: SITE_NAME, description: DESCRIPTION, summary: DESCRIPTION,
canonical: `${config.baseUrl}/`, robots: 'index, follow',
canonical: `${config.baseUrl}/`, robots: 'index, follow',
agentLayer: true, llms: `${config.baseUrl}/llms.txt`,
agentLayer: true, llms: `${config.baseUrl}/llms.txt`,