[upgrade] Abstract components on the page into subcomponents
This commit is contained in:
@@ -16,8 +16,21 @@ export type TSearchResultItem = {
|
||||
tags: string[] | null;
|
||||
};
|
||||
|
||||
export type TTOCItem = {
|
||||
export type TPostTOCItem = {
|
||||
level: number;
|
||||
title: string;
|
||||
anchorId: string;
|
||||
};
|
||||
|
||||
export type TPostFrontmatter = {
|
||||
title: string;
|
||||
time: string;
|
||||
tags: string[] | null;
|
||||
subtitle: string | null;
|
||||
summary: string | null;
|
||||
coverURL: string | null;
|
||||
pin: boolean | null;
|
||||
noPrompt: boolean | null;
|
||||
allowShare: boolean | null;
|
||||
closed: boolean | null;
|
||||
};
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
export type TPostFrontmatter = {
|
||||
title: string;
|
||||
time: string;
|
||||
tags: string[] | null;
|
||||
subtitle: string | null;
|
||||
summary: string | null;
|
||||
coverURL: string | null;
|
||||
pin: boolean | null;
|
||||
noPrompt: boolean | null;
|
||||
allowShare: boolean | null;
|
||||
closed: boolean | null;
|
||||
};
|
||||
Reference in New Issue
Block a user