feat(blog): enhance blog functionality and SEO

- Added a new '/blog' route to middleware for improved navigation.
- Updated sitemap to dynamically include blog posts and series URLs.
- Enhanced blog page metadata with Open Graph and Twitter card information.
- Implemented structured data for blog posts and series to improve SEO.
- Removed outdated blog post "Week 1: De Kickoff" from content.
- Introduced optional OG image field in blog frontmatter for better sharing visuals.
This commit is contained in:
colinislit
2026-01-01 10:56:34 +01:00
parent e7294e712f
commit 7df92dd2fb
22 changed files with 1625 additions and 19 deletions

View File

@@ -25,9 +25,27 @@ export async function generateMetadata({ params }: SeriesPageProps) {
return { title: 'Serie niet gevonden' }
}
const siteUrl = process.env.NEXT_PUBLIC_APP_URL || 'https://aispeedrun.vercel.app'
const seriesUrl = `${siteUrl}/blog/serie/${serieId}`
return {
title: `${series.title} - Blog`,
title: `${series.title} - Blog | AI Speedrun`,
description: series.description,
openGraph: {
title: series.title,
description: series.description,
type: 'website',
siteName: 'AI Speedrun',
locale: 'nl_NL',
},
twitter: {
card: 'summary',
title: series.title,
description: series.description,
},
alternates: {
canonical: seriesUrl,
},
}
}