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,22 +17,40 @@ 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 = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'AutoPartsStore',
|
||||
'@id': `${SITE_URL}/#store`,
|
||||
name: SITE_TITLE,
|
||||
url: `${SITE_URL}/`,
|
||||
description: SITE_DESCRIPTION,
|
||||
telephone: PHONES.map((p) => p.display),
|
||||
address: {
|
||||
'@type': 'PostalAddress',
|
||||
streetAddress: `${ADDRESS.street}, ${ADDRESS.building}`,
|
||||
addressLocality: ADDRESS.region,
|
||||
postalCode: ADDRESS.postal,
|
||||
addressCountry: 'RU',
|
||||
const jsonLd = [
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'AutoPartsStore',
|
||||
'@id': `${SITE_URL}/#store`,
|
||||
name: SITE_TITLE,
|
||||
url: `${SITE_URL}/`,
|
||||
description: SITE_DESCRIPTION,
|
||||
telephone: PHONES.map((p) => p.display),
|
||||
address: {
|
||||
'@type': 'PostalAddress',
|
||||
streetAddress: `${ADDRESS.street}, ${ADDRESS.building}`,
|
||||
addressLocality: ADDRESS.region,
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user