feat(schema): add WebSite + creator (hhivp.com) to JSON-LD
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:
Dmitry Gusev
2026-05-24 05:07:54 +03:00
parent 8ce20825f6
commit 6e996fa23d

View File

@@ -17,7 +17,8 @@ const { title, description = SITE_DESCRIPTION } = Astro.props;
const fullTitle = title ? `${title} — ${SITE_TITLE}` : `${SITE_TITLE} — в наличии и под заказ`;
const url = new URL(Astro.url.pathname, SITE_URL).toString();
const jsonLd = {
const jsonLd = [
{
'@context': 'https://schema.org',
'@type': 'AutoPartsStore',
'@id': `${SITE_URL}/#store`,
@@ -32,7 +33,24 @@ const jsonLd = {
postalCode: ADDRESS.postal,
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>