🪛 markdown renderer

This commit is contained in:
RJ
2025-11-07 16:13:10 +02:00
parent d29853c07d
commit 651beb2de6
10 changed files with 667 additions and 2 deletions

22
lib/types/frontmatter.ts Normal file
View File

@@ -0,0 +1,22 @@
export interface FrontMatter {
title: string;
description: string;
date: string;
author: string;
category: string;
tags: string[];
image?: string;
draft?: boolean;
}
export interface Post {
slug: string;
frontmatter: FrontMatter;
content: string;
readingTime: number;
excerpt: string;
}
export interface BlogParams {
slug: string[];
}