Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: search engine optimisations #151

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]',
phoneNumbers: '+01744-233208',
faxNumbers: '238350',
},

robots: 'index, follow',
};

export async function generateStaticParams() {
Expand Down