seo: sitemap, robots, og tags

This commit is contained in:
2025-08-06 22:38:22 +01:00
parent 1e0cca1ef3
commit 8544efb5bf
5 changed files with 172 additions and 10 deletions

View File

@@ -7,10 +7,40 @@ import "@fontsource/inter/700.css";
import { Providers } from "./providers";
import "./globals.css";
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://codetutor.example.com";
export const metadata: Metadata = {
title: "CodeTutor - Coding Interview Preparation",
title: {
default: "CodeTutor - Coding Interview Preparation",
template: "%s | CodeTutor",
},
description:
"Master coding interviews with curated questions, detailed explanations, and optimal solutions.",
"Master coding interviews with curated questions, detailed explanations, and optimal solutions. Practice 400+ problems with interactive code editor.",
keywords: [
"coding interview",
"leetcode",
"algorithm",
"data structures",
"programming practice",
"software engineering",
],
authors: [{ name: "Kai Chappell" }],
openGraph: {
type: "website",
locale: "en_US",
url: siteUrl,
siteName: "CodeTutor",
title: "CodeTutor - Coding Interview Preparation",
description:
"Master coding interviews with curated questions, detailed explanations, and optimal solutions.",
},
twitter: {
card: "summary_large_image",
title: "CodeTutor - Coding Interview Preparation",
description:
"Master coding interviews with curated questions, detailed explanations, and optimal solutions.",
},
metadataBase: new URL(siteUrl),
};
export default function RootLayout({