25 lines
385 B
TypeScript
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[]
|
|
}
|