test02/node_modules/@vuepress/plugin-blog/lib/shared/frontmatter.d.ts
罗佳鸿 6aa1ebe342
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
first commit
2024-08-13 10:11:19 +08:00

37 lines
997 B
TypeScript

import type { PageFrontmatter } from 'vuepress/shared';
export interface BlogCategoryFrontmatterOptions {
type: 'category';
/**
* Unique key under current category
*
* 在当前分类下全局唯一的 key
*/
key: string;
/**
* Current category name
*
* @description Only available in category item page
*
* 当前的分类名称
*
* @description 仅在分类子项目页面中可用
*/
name?: string;
}
export interface BlogTypeFrontmatterOptions {
type: 'type';
/**
* Unique key under current category
*
* 在当前分类下全局唯一的 key
*/
key: string;
}
export interface BlogPluginCategoryFrontmatter extends PageFrontmatter {
blog: BlogCategoryFrontmatterOptions;
}
export interface BlogPluginTypeFrontmatter extends PageFrontmatter {
blog: BlogTypeFrontmatterOptions;
}
export type BlogPluginFrontmatter = BlogPluginCategoryFrontmatter | BlogPluginTypeFrontmatter;