feat: blog updates

This commit is contained in:
Kalidou Diagne
2025-04-24 23:22:53 +03:00
parent 36b457e860
commit eb53fdcdfc
87 changed files with 151 additions and 79 deletions

View File

@@ -16,6 +16,7 @@ export interface Article {
hash?: string
canonical?: string
tags?: string[]
coverImage?: boolean
}
const articlesDirectory = path.join(process.cwd(), "articles")
@@ -66,7 +67,8 @@ export function getArticles(options?: { limit?: number; tag?: string }) {
return {
id,
...matterResult.data,
tags: tags, // Assign the combined and normalized tags array
coverImage: matterResult.data?.coverImage ?? false,
tags: tags,
content: matterResult.content,
}
} catch (error) {