export interface Article = Record> { /** * Article path * * 文章路径 */ path: string; /** * Article info * * 文章信息 */ info: T; } export interface BlogCategoryData = Record> { /** * Category path * * 分类路径 */ path: string; /** * Only available when current route matches an item path * * 仅当当前路径和某个子项目匹配时可用 */ currentItems?: Article[]; /** * Category map * * 分类映射 */ map: Record< /** * Unique key under current category * * 当前分类下全局唯一的 key */ string, { /** * Category path of the key * * 对应键值的分类路径 */ path: string; /** * Category items of the key * * 对应键值的项目 */ items: Article[]; }>; } export interface BlogTypeData = Record> { /** * Type path * * 类别路径 */ path: string; /** * Items under current type * * 当前类别下的项目 */ items: Article[]; }