feat: 博客归档

This commit is contained in:
2026-07-22 00:14:42 +08:00
parent 634824ff44
commit 17b1bf1e8a
3 changed files with 217 additions and 1 deletions

22
src/types/archive.ts Normal file
View 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[];