All checks were successful
deploy / deploy (push) Successful in 1m3s
- Footer.astro: добавлена подпись "Сайт разработан и сопровождается техническим партнёром — ООО «АйТи Решения»" со ссылкой на hhivp.com (по образу stbolshevik.ru/partners/). - global.css: стиль .developer (light text 0.78rem с dashed-подчёркнутой ссылкой). - Base.astro: добавлен Speculation Rules API inline в <head> для пререндера same-origin ссылок на hover/pointerdown (Chromium 122+).
86 lines
2.6 KiB
Plaintext
86 lines
2.6 KiB
Plaintext
---
|
|
import '@fontsource/ibm-plex-sans/400.css';
|
|
import '@fontsource/ibm-plex-sans/500.css';
|
|
import '@fontsource/ibm-plex-sans/700.css';
|
|
import '../styles/global.css';
|
|
import Footer from '../components/Footer.astro';
|
|
import CookieConsent from '../components/CookieConsent.astro';
|
|
import Analytics from '../components/Analytics.astro';
|
|
import { SITE_TITLE, SITE_DESCRIPTION, SITE_URL, SITE_LANG, ADDRESS, PHONES } from '../consts';
|
|
|
|
interface Props {
|
|
title?: string;
|
|
description?: string;
|
|
}
|
|
|
|
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',
|
|
},
|
|
};
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang={SITE_LANG}>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{fullTitle}</title>
|
|
<meta name="description" content={description} />
|
|
<link rel="canonical" href={url} />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content={fullTitle} />
|
|
<meta property="og:description" content={description} />
|
|
<meta property="og:url" content={url} />
|
|
<meta property="og:locale" content="ru_RU" />
|
|
<meta property="og:site_name" content={SITE_TITLE} />
|
|
<meta name="twitter:card" content="summary" />
|
|
|
|
<script type="application/ld+json" is:inline set:html={JSON.stringify(jsonLd)} />
|
|
|
|
<!--
|
|
Speculation Rules API (Chromium 122+) — prerender same-origin pages on
|
|
hover/pointerdown for near-instant navigation. Только / и /privacy/ —
|
|
eagerness moderate.
|
|
-->
|
|
<script type="speculationrules" is:inline set:html={JSON.stringify({
|
|
prerender: [
|
|
{
|
|
where: {
|
|
and: [
|
|
{ href_matches: '/*' },
|
|
{ not: { href_matches: '/_astro/*' } },
|
|
{ not: { href_matches: '/sitemap*' } }
|
|
]
|
|
},
|
|
eagerness: 'moderate'
|
|
}
|
|
]
|
|
})} />
|
|
|
|
<Analytics />
|
|
</head>
|
|
<body>
|
|
<slot />
|
|
<Footer />
|
|
<CookieConsent />
|
|
</body>
|
|
</html>
|