Files
mypage/lib/types/frontmatter.ts
2025-12-03 00:17:34 +02:00

25 lines
385 B
TypeScript

export interface FrontMatter {
title: string
description: string
date: string
author: string
category: string
tags: string[]
locale: string
image?: string
draft?: boolean
}
export interface Post {
slug: string
locale: string
frontmatter: FrontMatter
content: string
readingTime: number
excerpt: string
}
export interface BlogParams {
slug: string[]
}