57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import "./globals.css";
|
|
import Providers from "@/components/Providers";
|
|
import { PageTracker } from "@/components/analytics/PageTracker";
|
|
import { DEFAULT_DESCRIPTION, DEFAULT_TITLE, SITE_NAME, SITE_URL } from "@/lib/site";
|
|
import { OG_COMMON } from "@/lib/seo";
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(SITE_URL),
|
|
title: {
|
|
default: DEFAULT_TITLE,
|
|
template: `%s | ${SITE_NAME}`,
|
|
},
|
|
description: DEFAULT_DESCRIPTION,
|
|
authors: [{ name: SITE_NAME }],
|
|
creator: SITE_NAME,
|
|
openGraph: {
|
|
...OG_COMMON,
|
|
title: DEFAULT_TITLE,
|
|
description: DEFAULT_DESCRIPTION,
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: DEFAULT_TITLE,
|
|
description: DEFAULT_DESCRIPTION,
|
|
images: ["/og"],
|
|
},
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
googleBot: {
|
|
index: true,
|
|
follow: true,
|
|
"max-image-preview": "large",
|
|
"max-snippet": -1,
|
|
},
|
|
},
|
|
verification: {
|
|
google: "-sp9tX34g-I0F_O-VSyfKRVE4CXlWqqOZ7Xjyo-ZC0I",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="de" className="scroll-smooth" suppressHydrationWarning>
|
|
<body>
|
|
<PageTracker />
|
|
<Providers>{children}</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|