Skip to content

Commit e250ec0

Browse files
committed
feat: remove redundant heading and enhance SEO metadata
- Removed duplicate heading before search box for cleaner layout - Enhanced individual project pages with comprehensive SEO: - Added OpenGraph metadata with project logo, site name, locale - Added Twitter Card support with large image preview - Added canonical URLs for better search indexing - Added authors, creator, and publisher metadata - Configured robot directives for optimal crawling - Enhanced keywords with tags and programming language
1 parent 69a7515 commit e250ec0

File tree

2 files changed

+40
-9
lines changed

2 files changed

+40
-9
lines changed

app/page.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ export default function Home() {
6363

6464
{/* Main Content */}
6565
<main className="container mx-auto px-4 py-8">
66-
<div className="mb-6">
67-
<h2 className="text-2xl font-heading font-normal text-gray-900 dark:text-gray-100 tracking-wide">
68-
Discover Open Source Projects <span className="text-gray-600 dark:text-gray-400">From India</span>
69-
</h2>
70-
</div>
71-
7266
{/* Search and Filters */}
7367
{projects.length > 0 ? (
7468
<ProjectGrid initialProjects={searchIndex} />

app/projects/[slug]/page.tsx

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,52 @@ export async function generateMetadata({ params }: ProjectPageProps): Promise<Me
3131
};
3232
}
3333

34+
const ogImageUrl = `https://fossradar.in${project.logo}`;
35+
const pageUrl = `https://fossradar.in/projects/${slug}`;
36+
3437
return {
3538
title: `${project.name} - FOSSRadar.in`,
3639
description: project.short_desc,
37-
keywords: [...project.tags, "open source", "fossradar", "india"],
40+
keywords: [...project.tags, "open source", "fossradar", "india", project.primary_lang.toLowerCase()],
41+
authors: [{ name: "FOSSRadar.in" }],
42+
creator: "wbfoss",
43+
publisher: "wbfoss",
44+
alternates: {
45+
canonical: pageUrl,
46+
},
3847
openGraph: {
39-
title: project.name,
48+
title: `${project.name} - Open Source Project from India`,
4049
description: project.short_desc,
4150
type: "website",
42-
url: `https://fossradar.in/projects/${slug}`,
51+
url: pageUrl,
52+
siteName: "FOSSRadar.in",
53+
locale: "en_IN",
54+
images: [
55+
{
56+
url: ogImageUrl,
57+
width: 1200,
58+
height: 630,
59+
alt: `${project.name} logo`,
60+
},
61+
],
62+
},
63+
twitter: {
64+
card: "summary_large_image",
65+
title: `${project.name} - FOSSRadar.in`,
66+
description: project.short_desc,
67+
images: [ogImageUrl],
68+
creator: "@wbfoss",
69+
},
70+
robots: {
71+
index: true,
72+
follow: true,
73+
googleBot: {
74+
index: true,
75+
follow: true,
76+
"max-video-preview": -1,
77+
"max-image-preview": "large",
78+
"max-snippet": -1,
79+
},
4380
},
4481
};
4582
}

0 commit comments

Comments
 (0)