Switch to version 4: modified src/app/layout.tsx
This commit is contained in:
@@ -1,21 +1,59 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Halant } from "next/font/google";
|
||||
import { Inter } from "next/font/google";
|
||||
import { Figtree } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
||||
import Tag from "@/tag/Tag";
|
||||
|
||||
const halant = Halant({
|
||||
variable: "--font-halant", subsets: ["latin"],
|
||||
weight: ["300", "400", "500", "600", "700"],
|
||||
});
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter", subsets: ["latin"],
|
||||
});
|
||||
|
||||
const figtree = Figtree({
|
||||
variable: "--font-figtree", subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Nirva Cafe - Best Family Restaurant & Party Hall in Meerut", description: "Experience premium dining and celebrate at Nirva Cafe. Best family restaurant with cozy ambiance, authentic Italian cuisine, specialty coffee, and elegant party hall facilities in Meerut.", keywords: "restaurant Meerut, cafe Meerut, party hall, family restaurant, Italian food, coffee shop", authors: [{ name: "Nirva Cafe" }],
|
||||
title: "Nirva Cafe & Restaurant - Best Family Restaurant & Party Hall in Meerut", description: "Experience premium family dining and celebrate special moments at Nirva Cafe. 4.8★ rated restaurant with party hall, elegant ambiance, and fine dining in Meerut. Book your table today!", keywords: "best cafe in Meerut, family restaurant Meerut, party hall Meerut, fine dining Meerut, best place for birthday party in Meerut, cafe near me, restaurant reservations", metadataBase: new URL("https://nirvacafe.com"),
|
||||
alternates: {
|
||||
canonical: "https://nirvacafe.com"
|
||||
},
|
||||
openGraph: {
|
||||
title: "Nirva Cafe - Best Family Restaurant & Party Hall in Meerut", description: "Premium family restaurant with party hall facilities in Meerut. Authentic cuisine, specialty coffee, and elegant celebrations.", type: "website"},
|
||||
robots: "index, follow"};
|
||||
title: "Nirva Cafe & Restaurant - Best Family Restaurant & Party Hall in Meerut", description: "Premium family-friendly cafe and fine dining restaurant in Meerut. 4.8★ rating with spacious party hall for celebrations. Reserve your table now!", url: "https://nirvacafe.com", siteName: "Nirva Cafe & Restaurant", type: "website", images: [
|
||||
{
|
||||
url: "http://img.b2bpic.net/free-photo/restaurant-interior_1127-3394.jpg", alt: "Nirva Cafe - Elegant Interior"
|
||||
},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image", title: "Nirva Cafe & Restaurant - Best Family Restaurant & Party Hall in Meerut", description: "Premium family dining and party venue in Meerut. 4.8★ rated. Book your table or party hall today!", images: ["http://img.b2bpic.net/free-photo/restaurant-interior_1127-3394.jpg"],
|
||||
},
|
||||
robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>
|
||||
{children}
|
||||
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<ServiceWrapper>
|
||||
<body
|
||||
className={`${halant.variable} ${inter.variable} ${figtree.variable} antialiased`}
|
||||
>
|
||||
<Tag />
|
||||
{children}
|
||||
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@@ -1383,6 +1421,7 @@ export default function RootLayout({
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</ServiceWrapper>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user