--- import '../styles/global.css'; import { SITE_TITLE, SITE_DESCRIPTION, SITE_URL, SITE_LANG, SITE_FOUNDED, MAIN_NAV, SOCIAL } from '../consts'; import BrandMark from '../components/BrandMark.astro'; import SocialLinks from '../components/SocialLinks.astro'; import Analytics from '../components/Analytics.astro'; import CookieConsent from '../components/CookieConsent.astro'; interface Props { title?: string; description?: string; ogType?: 'website' | 'article'; } const { title, description, ogType = 'website' } = Astro.props; const pageTitle = title ? `${title} — ${SITE_TITLE}` : SITE_TITLE; const pageDesc = description || SITE_DESCRIPTION; const canonical = new URL(Astro.url.pathname, SITE_URL).toString(); const year = new Date().getFullYear(); const ogImage = new URL('/og-image.png', SITE_URL).toString(); const logoUrl = new URL('/logo.svg', SITE_URL).toString(); const jsonLd = [ { '@context': 'https://schema.org', '@type': 'WebSite', '@id': `${SITE_URL}/#website`, name: SITE_TITLE, url: SITE_URL, inLanguage: SITE_LANG, description: SITE_DESCRIPTION, publisher: { '@id': `${SITE_URL}/#org` }, // creator — тех-партнёр, разработчик сайта (hhivp.com). Entity-сигнал // для AI Overviews / Я.Нейро о связи между сайтом и его создателем. creator: { '@type': 'Organization', '@id': 'https://hhivp.com/#organization', name: 'ООО «АйТи Решения»', url: 'https://hhivp.com/', sameAs: ['https://hhivp.com'], }, potentialAction: { '@type': 'SearchAction', target: `${SITE_URL}/?s={query}`, 'query-input': 'required name=query', }, }, { '@context': 'https://schema.org', '@type': 'NewsMediaOrganization', '@id': `${SITE_URL}/#org`, name: SITE_TITLE, url: SITE_URL, logo: logoUrl, image: ogImage, description: SITE_DESCRIPTION, foundingDate: String(SITE_FOUNDED), sameAs: Object.values(SOCIAL).map((s) => s.url), }, ]; ---