Add fetch post list

* add gray-matter
This commit is contained in:
Defectink
2022-03-22 17:03:35 +08:00
parent c651389aa3
commit 1179cc3c1f
9 changed files with 150 additions and 6 deletions

View File

@ -9,3 +9,13 @@ export type NextPageWithLayout = {
export type AppPropsWithLayout = AppProps & {
Component: NextPageWithLayout;
};
export interface MyMatters {
title: string;
date: string;
tags: string;
}
export interface Post extends MyMatters {
slug: string;
}