DataSourceConfig
| 名称 | 类型 | 描述 |
|---|---|---|
| title | string | 博客名称 |
| subtitle | string | null | 子标题 |
| description | string | null | 描述 |
| author | string | 作者名称 |
| homePage | string | null | 作者首页链接 |
| theme_config | ThemeConfig | null | 主题配置 |
| metadata | Map<string, string> | null |
ThemeConfig
| 名称 | 类型 | 描述 |
|---|---|---|
| indexPageSize | number | null | 首页分页大小,默认为5 |
| background | string[] | null | 首页背景图片,每次访问会随机展示 |
| avatar | string | null | 头像链接 |
| favicon | string | null | 外部图标链接。不填默认使用根目录下的 favicon.ico |
Envrionment
详见: environment.d.ts
默认值:.env
Metadata
| 名称 | 类型 | 描述 |
|---|---|---|
| title | string | null | 文章标题,不写时使用 Untitled |
| date | string | null | 文件创建时间,使用 yyyy/MM/dd hh:mm:ss 的格式,例如: 2024/10/24 11:14:33 |
| categories | string | string[] | null |
| tags | string | string[] | null |
| seo | SEO | null | SEO 优化 |
SEO
SEO 优化
| 名称 | 类型 | 描述 |
|---|---|---|
| title | string | null | 网页标题 |
| description | string | null | 网页描述,推荐长度至少为 25 |
| keywords | string[] | null | 网页关键词 |