From a7b2c4b4f5ec73f688af89b31bae32fb89b99549 Mon Sep 17 00:00:00 2001 From: GetPsyched Date: Mon, 22 Apr 2024 04:04:54 +0530 Subject: [PATCH] feat: metadata for / --- app/[locale]/layout.tsx | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 95fb3b88..c3d5ecb3 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -7,8 +7,46 @@ import { cn } from '~/lib/utils'; import '~/styles/globals.css'; export const metadata: Metadata = { - title: 'National Institute of Technology, Kurukshetra', + metadataBase: new URL('https://nitkkr-dev.vercel.app'), + alternates: { + canonical: 'https://nitkkr-dev.vercel.app', + languages: { + en: 'https://nitkkr-dev.vercel.app/en', + hi: 'https://nitkkr-dev.vercel.app/hi', + }, + }, + + title: { + default: 'NIT Kurukshetra', + template: '%s | NIT Kurukshetra', + }, description: 'Institution of National Importance', + + creator: 'Institute Software Application Club', + authors: [ + { + name: 'Institute Software Application Club', + url: 'https://nitkkr-dev.vercel.app/student-activities/clubs/institute-software-application-club', + }, + ], + + openGraph: { + title: 'NIT Kurukshetra', + description: 'Institution of National Importance', + url: 'https://nitkkr-dev.vercel.app', + siteName: 'NIT Kurukshetra', + type: 'website', + + locale: 'en', + alternateLocale: 'hi', + + countryName: 'India', + emails: 'registrar@nitkkr.ac.in', + phoneNumbers: '+01744-233208', + faxNumbers: '238350', + }, + + robots: 'index, follow', }; export async function generateStaticParams() {