From 38c9f3ea1e07daef5ac3aee8d592cfd6a0301de6 Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 14 Mar 2026 04:17:26 +0000 Subject: [PATCH] Update src/app/layout.tsx --- src/app/layout.tsx | 59 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 47 insertions(+), 12 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0f7096a..28ef5eb 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,27 +1,60 @@ import type { Metadata } from "next"; import { Halant } from "next/font/google"; import { Inter } from "next/font/google"; +import { DM_Sans } from "next/font/google"; import "./globals.css"; import { ServiceWrapper } from "@/components/ServiceWrapper"; import Tag from "@/tag/Tag"; import { getVisualEditScript } from "@/utils/visual-edit-script"; -import { DM_Sans } from "next/font/google"; +const halant = Halant({ + variable: "--font-halant", + subsets: ["latin"], + weight: ["300", "400", "500", "600", "700"], +}); - -export const metadata: Metadata = { - title: "Webild components 2", - description: "Generated by create next app", -}; +const inter = Inter({ + variable: "--font-inter", + subsets: ["latin"], +}); const dmSans = DM_Sans({ variable: "--font-dm-sans", subsets: ["latin"], }); -const inter = Inter({ - variable: "--font-inter", - subsets: ["latin"], -}); + +export const metadata: Metadata = { + title: "PhysicsHub - Physics Theories & Explanations", + description: "Comprehensive physics knowledge base with theories on mechanics, quantum physics, thermodynamics, electromagnetism, and relativity. Free educational resources.", + keywords: "physics theories, quantum mechanics, relativity, thermodynamics, electromagnetism, classical mechanics, physics education, physics explanations", + metadataBase: new URL("https://physicshub.com"), + alternates: { + canonical: "https://physicshub.com", + }, + openGraph: { + title: "PhysicsHub - Physics Theories & Explanations", + description: "Comprehensive physics knowledge base with theories on mechanics, quantum physics, thermodynamics, electromagnetism, and relativity.", + url: "https://physicshub.com", + siteName: "PhysicsHub", + type: "website", + images: [ + { + url: "https://physicshub.com/og-image.jpg", + alt: "PhysicsHub - Physics Knowledge Platform", + }, + ], + }, + twitter: { + card: "summary_large_image", + title: "PhysicsHub - Physics Theories & Explanations", + description: "Comprehensive physics knowledge base with detailed theory explanations and educational resources.", + images: ["https://physicshub.com/twitter-image.jpg"], + }, + robots: { + index: true, + follow: true, + }, +}; export default function RootLayout({ children, @@ -31,7 +64,9 @@ export default function RootLayout({ return ( - + {children}