feat: 博客归档
This commit is contained in:
22
src/types/archive.ts
Normal file
22
src/types/archive.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
type ArchiveYear = {
|
||||
year: number;
|
||||
total: number;
|
||||
list: ArchiveMonth[];
|
||||
};
|
||||
|
||||
type ArchivePost = {
|
||||
id: number;
|
||||
slug: string;
|
||||
title: string;
|
||||
published_at: string;
|
||||
published_at_display: string;
|
||||
category_name: string;
|
||||
};
|
||||
|
||||
type ArchiveMonth = {
|
||||
month: number;
|
||||
display_month: string;
|
||||
list: ArchivePost[];
|
||||
};
|
||||
|
||||
export type Archive = ArchiveYear[];
|
||||
Reference in New Issue
Block a user