23 lines
365 B
TypeScript
23 lines
365 B
TypeScript
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[];
|
|
}
|