[upgrade] Abstract components on the page into subcomponents

This commit is contained in:
PrinOrange
2024-09-28 00:18:55 +08:00
parent f00a79fcf3
commit 959e513dcd
31 changed files with 508 additions and 374 deletions

View File

@@ -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;
};