import '@/styles/globals.css'; import 'react-tooltip/dist/react-tooltip.css'; import { Red_Hat_Display } from 'next/font/google'; import { type Metadata } from 'next/types'; import { allPosts } from 'contentlayer/generated'; import { blogConfig } from '@/config'; import { Analytics } from '@/components/analytics'; import { FontStyleProvider } from '@/components/font-style-provider'; import { Footer } from '@/components/footer'; import { Header } from '@/components/header'; import { Search } from '@/components/search'; import { cn } from '@/lib/utils'; import Script from 'next/script'; const fontSans = Red_Hat_Display({ subsets: ['latin'], variable: '--font-red-hat', }); type RootLayoutProps = { children: React.ReactNode; }; export const metadata: Metadata = { title: { default: blogConfig.title, template: `${blogConfig.title} | %s`, }, openGraph: { title: { default: blogConfig.title, template: `${blogConfig.title} | %s`, }, }, twitter: { title: { default: blogConfig.title, template: `${blogConfig.title} | %s`, }, }, robots: { index: true, follow: true, }, icons: [ { rel: 'apple-touch-icon', sizes: '180x180', url: '/apple-touch-icon.png', }, { rel: 'icon', type: 'image/png', sizes: '32x32', url: '/favicon-32x32.png', }, { rel: 'icon', type: 'image/png', sizes: '16x16', url: '/favicon-16x16.png', }, ], }; export default function RootLayout({ children }: RootLayoutProps) { return (
{children}