diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index f6a88f8..9b00df1 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -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'], + }, + }, +]; ---