Switch to version 2: modified src/app/layout.tsx

This commit is contained in:
2026-03-04 13:55:59 +00:00
parent 54a1fbf6c9
commit 4f7c52c11a

View File

@@ -1,16 +1,53 @@
import type { Metadata } from "next";
import { Montserrat } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const montserrat = Montserrat({
variable: "--font-montserrat", subsets: ["latin"],
});
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Trust Supermarket", description: "Your trusted neighborhood supermarket in Ballouneh"};
title: "Trust Supermarket Ballouneh | Fresh Groceries & Fair Prices", description: "Your trusted neighborhood supermarket in Ballouneh. Fresh produce, quality meat, dairy, and household essentials. Open daily. Call 09 236 435 or visit us today.", keywords: "supermarket Ballouneh, grocery store Ballouneh, fresh produce Ballouneh, supermarket near me, local supermarket", metadataBase: new URL("https://trustsupermarket.com"),
alternates: {
canonical: "https://trustsupermarket.com"
},
openGraph: {
title: "Trust Supermarket Ballouneh's Trusted Grocery Store", description: "Fresh products. Great prices. Friendly service. Visit Trust Supermarket today.", url: "https://trustsupermarket.com", siteName: "Trust Supermarket", type: "website", images: [
{
url: "http://img.b2bpic.net/free-photo/shopping-woman-looking-shelves-supermarket-with-shopping-cart-portrait-young-girl-market-store-fruits-vegetables-section_627829-6362.jpg", alt: "Trust Supermarket storefront"
}
]
},
twitter: {
card: "summary_large_image", title: "Trust Supermarket Your Neighborhood Grocery Store", description: "Fresh, quality groceries at competitive prices in Ballouneh.", images: ["http://img.b2bpic.net/free-photo/shopping-woman-looking-shelves-supermarket-with-shopping-cart-portrait-young-girl-market-store-fruits-vegetables-section_627829-6362.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={`${montserrat.variable} ${inter.variable} antialiased`}
>
<Tag />
{children}
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1378,6 +1415,7 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}