From 71b5510bea8b52cff6e76fa1aad7664a866f0bb2 Mon Sep 17 00:00:00 2001 From: Devyash Saini Date: Wed, 31 Jul 2024 22:26:22 +0530 Subject: [PATCH] one more attempt to set OG --- src/app/home/layout.tsx | 28 ++++++++++++++-------------- src/app/layout.tsx | 16 +++++++++------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/app/home/layout.tsx b/src/app/home/layout.tsx index 17bc903..0e34118 100644 --- a/src/app/home/layout.tsx +++ b/src/app/home/layout.tsx @@ -1,29 +1,29 @@ import React from 'react'; import Navbar from "@/components/navbar" import Footer from "@/components/footer" -import Head from 'next/head'; +import type { Metadata } from "next"; interface RootLayoutProps { children: React.ReactNode; } +export const metadata: Metadata = { + title: "Coding Club IIITV", + description: "IIITV Coding Club Community Website | Workshops | Mentorship | Community", + openGraph: { + title: 'Coding Club IIITV', + description: 'IIITV Coding Club Community Website | Workshops | Mentorship | Community', + images: ["https://iiitvcc.vercel.app/LinkPreview.png"], + type: 'website', + locale: 'en_IN', + url: 'https://iiitvcc.vercel.app', + }, +}; + export default function RootLayout({ children } : RootLayoutProps) { return ( <> - - - - - - - - - - {children}