Update src/app/layout.tsx

This commit is contained in:
2026-03-15 16:51:14 +00:00
parent 2ed36ddbc9
commit 27f7edaead

View File

@@ -1,18 +1,22 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Inter_Tight } 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 { Inter_Tight } 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 interTight = Inter_Tight({
variable: "--font-inter-tight",
@@ -20,6 +24,39 @@ const interTight = Inter_Tight({
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});
export const metadata: Metadata = {
title: "BlogHub - Publish Stories, Build Audience, Monetize Content",
description: "BlogHub is the ultimate platform for writers and content creators. Write, publish, engage with readers through comments, and monetize with Google Ads. Join thousands of creators today.",
keywords: "blogging platform, content creation, publishing, monetize blogs, google ads, community writing, storytelling, audience building",
metadataBase: new URL("https://bloghub.com"),
alternates: {
canonical: "https://bloghub.com",
},
openGraph: {
title: "BlogHub - Publish Stories, Build Audience, Monetize Content",
description: "Share your voice, build your audience, and monetize your content on BlogHub. The ultimate platform for writers and creators.",
url: "https://bloghub.com",
siteName: "BlogHub",
type: "website",
images: [
{
url: "http://img.b2bpic.net/free-vector/e-learning-flat_1284-25222.jpg",
alt: "BlogHub - Platform for writers and content creators",
},
],
},
twitter: {
card: "summary_large_image",
title: "BlogHub - Publish Stories, Build Audience, Monetize Content",
description: "Join thousands of creators sharing stories and earning from their content on BlogHub.",
images: ["http://img.b2bpic.net/free-vector/e-learning-flat_1284-25222.jpg"],
},
robots: {
index: true,
follow: true,
},
};
export default function RootLayout({
children,
}: Readonly<{
@@ -28,7 +65,9 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body className={`${interTight.variable} antialiased`}>
<body
className={`${halant.variable} ${inter.variable} ${interTight.variable} antialiased`}
>
<Tag />
{children}
<script
@@ -40,4 +79,4 @@ export default function RootLayout({
</ServiceWrapper>
</html>
);
}
}