96 lines
3.5 KiB
JavaScript
96 lines
3.5 KiB
JavaScript
import './globals.css';
|
|
|
|
export const metadata = {
|
|
title: {
|
|
default: 'ZeroPost — практические материалы про ИИ',
|
|
template: '%s — ZeroPost',
|
|
},
|
|
description: 'Блог про практическое применение искусственного интеллекта. Промпты, инструменты, кейсы — без воды.',
|
|
metadataBase: new URL('https://zeropost.ru'),
|
|
keywords: ['искусственный интеллект', 'промпт-инжиниринг', 'ChatGPT', 'Claude', 'ИИ инструменты', 'автоматизация'],
|
|
authors: [{ name: 'ZeroPost', url: 'https://zeropost.ru' }],
|
|
creator: 'ZeroPost',
|
|
publisher: 'ZeroPost',
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
googleBot: { index: true, follow: true },
|
|
},
|
|
openGraph: {
|
|
type: 'website',
|
|
locale: 'ru_RU',
|
|
url: 'https://zeropost.ru',
|
|
siteName: 'ZeroPost',
|
|
title: 'ZeroPost — практические материалы про ИИ',
|
|
description: 'Блог про практическое применение искусственного интеллекта. Промпты, инструменты, кейсы — без воды.',
|
|
images: [
|
|
{
|
|
url: '/og-default.png',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: 'ZeroPost — практические материалы про ИИ',
|
|
},
|
|
],
|
|
},
|
|
twitter: {
|
|
card: 'summary_large_image',
|
|
title: 'ZeroPost — практические материалы про ИИ',
|
|
description: 'Блог про практическое применение искусственного интеллекта. Промпты, инструменты, кейсы — без воды.',
|
|
images: ['/og-default.png'],
|
|
},
|
|
icons: {
|
|
icon: [
|
|
{ url: '/favicon.svg', type: 'image/svg+xml' },
|
|
{ url: '/favicon-16x16.png', sizes: '16x16', type: 'image/png' },
|
|
{ url: '/favicon-32x32.png', sizes: '32x32', type: 'image/png' },
|
|
],
|
|
apple: [{ url: '/apple-touch-icon.png', sizes: '180x180' }],
|
|
other: [
|
|
{ rel: 'manifest', url: '/site.webmanifest' },
|
|
],
|
|
},
|
|
alternates: {
|
|
canonical: 'https://zeropost.ru',
|
|
types: { 'application/rss+xml': '/rss.xml' },
|
|
},
|
|
};
|
|
|
|
export const viewport = {
|
|
width: 'device-width',
|
|
initialScale: 1,
|
|
maximumScale: 5,
|
|
themeColor: [
|
|
{ media: '(prefers-color-scheme: light)', color: '#fafaf9' },
|
|
{ media: '(prefers-color-scheme: dark)', color: '#0a0a0a' },
|
|
],
|
|
viewportFit: 'cover',
|
|
};
|
|
|
|
const themeInitScript = `
|
|
(function() {
|
|
try {
|
|
var saved = localStorage.getItem('theme');
|
|
var theme = saved || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
|
if (theme === 'dark') document.documentElement.classList.add('dark');
|
|
} catch(e) {}
|
|
})();
|
|
`;
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
<html lang="ru" suppressHydrationWarning>
|
|
<head>
|
|
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<link rel="alternate" type="application/rss+xml" title="ZeroPost RSS" href="/rss.xml" />
|
|
</head>
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|