feat(schema): add WebSite + creator (hhivp.com) to JSON-LD
All checks were successful
deploy / deploy (push) Successful in 1m0s
All checks were successful
deploy / deploy (push) Successful in 1m0s
JSON-LD теперь массив: AutoPartsStore + WebSite. Creator — entity-сигнал тех-партнёрства для AI Overviews / Я.Нейро. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,8 @@ const { title, description = SITE_DESCRIPTION } = Astro.props;
|
|||||||
const fullTitle = title ? `${title} — ${SITE_TITLE}` : `${SITE_TITLE} — в наличии и под заказ`;
|
const fullTitle = title ? `${title} — ${SITE_TITLE}` : `${SITE_TITLE} — в наличии и под заказ`;
|
||||||
const url = new URL(Astro.url.pathname, SITE_URL).toString();
|
const url = new URL(Astro.url.pathname, SITE_URL).toString();
|
||||||
|
|
||||||
const jsonLd = {
|
const jsonLd = [
|
||||||
|
{
|
||||||
'@context': 'https://schema.org',
|
'@context': 'https://schema.org',
|
||||||
'@type': 'AutoPartsStore',
|
'@type': 'AutoPartsStore',
|
||||||
'@id': `${SITE_URL}/#store`,
|
'@id': `${SITE_URL}/#store`,
|
||||||
@@ -32,7 +33,24 @@ const jsonLd = {
|
|||||||
postalCode: ADDRESS.postal,
|
postalCode: ADDRESS.postal,
|
||||||
addressCountry: 'RU',
|
addressCountry: 'RU',
|
||||||
},
|
},
|
||||||
};
|
},
|
||||||
|
{
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'WebSite',
|
||||||
|
'@id': `${SITE_URL}/#website`,
|
||||||
|
url: `${SITE_URL}/`,
|
||||||
|
name: SITE_TITLE,
|
||||||
|
inLanguage: 'ru',
|
||||||
|
publisher: { '@id': `${SITE_URL}/#store` },
|
||||||
|
creator: {
|
||||||
|
'@type': 'Organization',
|
||||||
|
'@id': 'https://hhivp.com/#organization',
|
||||||
|
name: 'ООО «АйТи Решения»',
|
||||||
|
url: 'https://hhivp.com/',
|
||||||
|
sameAs: ['https://hhivp.com'],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|||||||
Reference in New Issue
Block a user