valaxy 0.18.9 → 0.18.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/components/ValaxyMd.vue +1 -1
- package/client/utils/router.ts +48 -0
- package/dist/{chunk-F2X3NOEJ.mjs → chunk-57MNPFIN.mjs} +3 -3
- package/dist/{chunk-4B74DZJ5.cjs → chunk-KIFZXMGL.cjs} +18 -18
- package/dist/{config-Kdq8Mya1.d.cts → config-D40lUB2J.d.cts} +62 -26
- package/dist/{config-Kdq8Mya1.d.ts → config-D40lUB2J.d.ts} +62 -26
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +6 -3
- package/dist/types/index.d.ts +6 -3
- package/dist/types/index.mjs +1 -1
- package/package.json +12 -12
- package/types/config.ts +1 -1
- package/types/frontmatter/index.ts +2 -0
- package/types/frontmatter/page.ts +191 -0
- package/types/frontmatter/post.ts +103 -0
- package/types/index.ts +1 -0
- package/types/posts.ts +1 -253
- /package/dist/{chunk-YO6XYYV3.cjs → chunk-EKEE6AAY.cjs} +0 -0
- /package/dist/{chunk-42NDXDT3.mjs → chunk-OE2XGI4S.mjs} +0 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { ImageObject, NodeRelations } from '@unhead/schema-org'
|
|
2
|
+
|
|
3
|
+
export interface Album {
|
|
4
|
+
/**
|
|
5
|
+
* @description:en-US Album Link
|
|
6
|
+
*/
|
|
7
|
+
url: string
|
|
8
|
+
/**
|
|
9
|
+
* @description:en-US Album cover
|
|
10
|
+
* url
|
|
11
|
+
*/
|
|
12
|
+
cover: string
|
|
13
|
+
/**
|
|
14
|
+
* @description:en-US Album caption
|
|
15
|
+
*/
|
|
16
|
+
caption: string
|
|
17
|
+
/**
|
|
18
|
+
* @description:en-US Album description
|
|
19
|
+
*/
|
|
20
|
+
desc: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface Photo {
|
|
24
|
+
src: string
|
|
25
|
+
caption: string
|
|
26
|
+
desc: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface PageFrontMatter extends Record<string, any> {
|
|
30
|
+
/**
|
|
31
|
+
* Path of post
|
|
32
|
+
* route.path
|
|
33
|
+
* @description 路径
|
|
34
|
+
*/
|
|
35
|
+
path: string
|
|
36
|
+
/**
|
|
37
|
+
* Title
|
|
38
|
+
* @description 文章标题
|
|
39
|
+
*/
|
|
40
|
+
title: string
|
|
41
|
+
date: string | number | Date
|
|
42
|
+
/**
|
|
43
|
+
* Updated Time
|
|
44
|
+
*/
|
|
45
|
+
updated: string | number | Date
|
|
46
|
+
/**
|
|
47
|
+
* i18n
|
|
48
|
+
*/
|
|
49
|
+
lang: string
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @description Author
|
|
53
|
+
* @description:zh-CN 作者
|
|
54
|
+
*/
|
|
55
|
+
author: string
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Display sponsor info
|
|
59
|
+
* @description 是否开启赞助
|
|
60
|
+
*/
|
|
61
|
+
sponsor: boolean
|
|
62
|
+
/**
|
|
63
|
+
* Copyright
|
|
64
|
+
* @description 是否显示文章底部版权信息
|
|
65
|
+
*/
|
|
66
|
+
copyright: boolean
|
|
67
|
+
|
|
68
|
+
// schema
|
|
69
|
+
image: NodeRelations<ImageObject | string>
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* cover
|
|
73
|
+
* @description 封面图片
|
|
74
|
+
*/
|
|
75
|
+
cover: string
|
|
76
|
+
/**
|
|
77
|
+
* display toc
|
|
78
|
+
* @description 是否显示目录
|
|
79
|
+
*/
|
|
80
|
+
toc: boolean
|
|
81
|
+
/**
|
|
82
|
+
* display right sidebar
|
|
83
|
+
* @description 是否显示右侧侧边栏
|
|
84
|
+
*/
|
|
85
|
+
aside: boolean
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @description:en-US Custom Markdown class
|
|
89
|
+
* @description:zh-CN 自定义 Markdown 样式
|
|
90
|
+
* @default 'markdown-body'
|
|
91
|
+
*/
|
|
92
|
+
markdownClass: string
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @description:en-US Post title class
|
|
96
|
+
* @description:zh-CN 文章标题样式
|
|
97
|
+
*/
|
|
98
|
+
pageTitleClass: string
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* icon before title
|
|
102
|
+
* @description 标题前的图标
|
|
103
|
+
*/
|
|
104
|
+
icon: string
|
|
105
|
+
/**
|
|
106
|
+
* title color
|
|
107
|
+
* @deprecated Please use `pageTitleClass` | `postTitleClass` instead
|
|
108
|
+
*/
|
|
109
|
+
color: string
|
|
110
|
+
/**
|
|
111
|
+
* display comment
|
|
112
|
+
*/
|
|
113
|
+
comment: boolean
|
|
114
|
+
/**
|
|
115
|
+
* post is end
|
|
116
|
+
* @description 是否完结,将在末尾添加衬线字体 Q.E.D.
|
|
117
|
+
*/
|
|
118
|
+
end: boolean
|
|
119
|
+
|
|
120
|
+
// third-party features
|
|
121
|
+
/**
|
|
122
|
+
* use aplayer
|
|
123
|
+
* @url https://aplayer.js.org/
|
|
124
|
+
*/
|
|
125
|
+
aplayer: boolean
|
|
126
|
+
/**
|
|
127
|
+
* use katex
|
|
128
|
+
* @url https://katex.org/
|
|
129
|
+
*/
|
|
130
|
+
katex: boolean
|
|
131
|
+
/**
|
|
132
|
+
* use codepen
|
|
133
|
+
* @url https://codepen.io/
|
|
134
|
+
*/
|
|
135
|
+
codepen: boolean
|
|
136
|
+
/**
|
|
137
|
+
* use medium-zoom
|
|
138
|
+
* @url https://github.com/francoischalifour/medium-zoom
|
|
139
|
+
*/
|
|
140
|
+
medium_zoom: boolean
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @description:en-US Albums
|
|
144
|
+
* @description:zh-CN 相册
|
|
145
|
+
*/
|
|
146
|
+
albums: Album[]
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* For layout Gallery
|
|
150
|
+
* @description:en-US Photos
|
|
151
|
+
*/
|
|
152
|
+
photos: Photo[]
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @description:zh-CN 是否启用加密,password 存在时默认为 true
|
|
156
|
+
*/
|
|
157
|
+
encrypt: boolean
|
|
158
|
+
/**
|
|
159
|
+
* @description:zh-CN 加密密码
|
|
160
|
+
*/
|
|
161
|
+
password?: string
|
|
162
|
+
/**
|
|
163
|
+
* @description:zh-CN 相册密码
|
|
164
|
+
*/
|
|
165
|
+
gallery_password?: string
|
|
166
|
+
/**
|
|
167
|
+
* @en
|
|
168
|
+
* @description encrypted content
|
|
169
|
+
*
|
|
170
|
+
* @description:zh-CN 加密后的内容
|
|
171
|
+
*/
|
|
172
|
+
encryptedContent?: string
|
|
173
|
+
/**
|
|
174
|
+
* @description:zh-CN 部分加密的内容
|
|
175
|
+
*/
|
|
176
|
+
partiallyEncryptedContents?: string[]
|
|
177
|
+
/**
|
|
178
|
+
* @description:zh-CN 加密后的相册
|
|
179
|
+
*/
|
|
180
|
+
encryptedPhotos?: string
|
|
181
|
+
/**
|
|
182
|
+
* @description:en-US Limit the height of the code block in px
|
|
183
|
+
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
184
|
+
*/
|
|
185
|
+
codeHeightLimit?: number
|
|
186
|
+
/**
|
|
187
|
+
* @description:en-US Source path for client redirection
|
|
188
|
+
* @description:zh-CN 客户端重定向的源路径
|
|
189
|
+
*/
|
|
190
|
+
from?: string | string[]
|
|
191
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { PageFrontMatter } from './page'
|
|
2
|
+
|
|
3
|
+
export type ExcerptType = 'md' | 'html' | 'text' | 'ai'
|
|
4
|
+
|
|
5
|
+
export interface PostFrontMatter extends PageFrontMatter {
|
|
6
|
+
/**
|
|
7
|
+
* @description:en-US Custom post title class in post list
|
|
8
|
+
* @description:zh-CN 文章列表中 自定义标题样式
|
|
9
|
+
*/
|
|
10
|
+
postTitleClass: string
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description:en-US Post Card Type, can be bilibili/yuque/... (need theme support)
|
|
14
|
+
* @description:zh-CN 卡片类型,可以是 bilibili/yuque/... (需主题支持)
|
|
15
|
+
*/
|
|
16
|
+
type: 'bilibili' | 'yuque' | string
|
|
17
|
+
/**
|
|
18
|
+
* @en override url, and jump directly
|
|
19
|
+
* @zh 覆盖 post url,直接跳转
|
|
20
|
+
*/
|
|
21
|
+
url: string
|
|
22
|
+
/**
|
|
23
|
+
* @description:en-US custom excerpt, `excerpt_type` will be invalid
|
|
24
|
+
* @description 手动指定摘要,此时 `excerpt_type` 将会无效
|
|
25
|
+
*/
|
|
26
|
+
excerpt: string
|
|
27
|
+
/**
|
|
28
|
+
* @description 摘要类型
|
|
29
|
+
* @default 'html'
|
|
30
|
+
* render type of excerpt
|
|
31
|
+
* - md: render as raw markdown
|
|
32
|
+
* - html: render as html
|
|
33
|
+
* - text: render as text
|
|
34
|
+
*/
|
|
35
|
+
excerpt_type: 'md' | 'text' | 'html' | 'ai'
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description:en-US Category, if it is an array, it represents multiple folders in order
|
|
39
|
+
* @description:zh-CN 分类,若为数组,则按顺序代表多层文件夹
|
|
40
|
+
*/
|
|
41
|
+
categories: string | string[]
|
|
42
|
+
/**
|
|
43
|
+
* @description:en-US Tags, can have multiple
|
|
44
|
+
* @description:zh-CN 标签,可以有多个
|
|
45
|
+
*/
|
|
46
|
+
tags: string[]
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @description:en-US Whether to display the previous and next navigation
|
|
50
|
+
* @description:zh-CN 是否显示前一篇、后一篇导航
|
|
51
|
+
*/
|
|
52
|
+
nav: boolean
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @description:en-US Pin to top, the larger the number, the closer to the front
|
|
56
|
+
* @description:zh-CN 置顶,数字越大越靠前
|
|
57
|
+
*/
|
|
58
|
+
top: number
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @description:en-US Whether it is a draft, it will only be displayed during development
|
|
62
|
+
* @description:zh-CN 是否为草稿,将仅在开发时被展示
|
|
63
|
+
*/
|
|
64
|
+
draft: boolean
|
|
65
|
+
/**
|
|
66
|
+
* hide in index
|
|
67
|
+
* - true/`all`: hide in index & archive
|
|
68
|
+
* - `index`: hide in index
|
|
69
|
+
* @description 是否隐藏
|
|
70
|
+
*/
|
|
71
|
+
hide: 'index' | boolean
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @en
|
|
75
|
+
* when the post is updated more than 30 days ago, show a warning
|
|
76
|
+
* default 30 days, you can set `time_warning` in frontmatter to change it
|
|
77
|
+
*
|
|
78
|
+
* @zh
|
|
79
|
+
* 当文章更新时间超过 30 天时,显示一个警告
|
|
80
|
+
* 默认 30 天,你可以在 frontmatter 中设置 `time_warning` (数字)来修改,单位 ms
|
|
81
|
+
* @example 3600000
|
|
82
|
+
*/
|
|
83
|
+
time_warning: boolean | number
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @protected
|
|
87
|
+
* @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
|
|
88
|
+
* @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
|
|
89
|
+
* You can use `statistics.readTime.speed` to change the speed of reading time.
|
|
90
|
+
* @description:en-US Reading time
|
|
91
|
+
* @description:zh-CN 阅读时间
|
|
92
|
+
*/
|
|
93
|
+
readingTime: number
|
|
94
|
+
/**
|
|
95
|
+
* @protected
|
|
96
|
+
* @see https://valaxy.site/guide/config/#%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1
|
|
97
|
+
* @tutorial ⚠️ DO NOT SET MANUALLY (generated by `site.config.ts` -> `statistics.enable: true`)
|
|
98
|
+
* You need enable `statistics` in site config to use this feature.
|
|
99
|
+
* @description:en-US Word count
|
|
100
|
+
* @description:zh-CN 字数统计
|
|
101
|
+
*/
|
|
102
|
+
wordCount: string
|
|
103
|
+
}
|
package/types/index.ts
CHANGED
package/types/posts.ts
CHANGED
|
@@ -1,256 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export interface Album {
|
|
4
|
-
/**
|
|
5
|
-
* @description:en-US Album Link
|
|
6
|
-
*/
|
|
7
|
-
url: string
|
|
8
|
-
/**
|
|
9
|
-
* @description:en-US Album cover
|
|
10
|
-
* url
|
|
11
|
-
*/
|
|
12
|
-
cover: string
|
|
13
|
-
/**
|
|
14
|
-
* @description:en-US Album caption
|
|
15
|
-
*/
|
|
16
|
-
caption: string
|
|
17
|
-
/**
|
|
18
|
-
* @description:en-US Album description
|
|
19
|
-
*/
|
|
20
|
-
desc: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface Photo {
|
|
24
|
-
src: string
|
|
25
|
-
caption: string
|
|
26
|
-
desc: string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type ExcerptType = 'md' | 'html' | 'text' | 'ai'
|
|
30
|
-
|
|
31
|
-
export interface PageFrontMatter extends Record<string, any> {
|
|
32
|
-
/**
|
|
33
|
-
* Path of post
|
|
34
|
-
* route.path
|
|
35
|
-
* @description 路径
|
|
36
|
-
*/
|
|
37
|
-
path: string
|
|
38
|
-
/**
|
|
39
|
-
* Title
|
|
40
|
-
* @description 文章标题
|
|
41
|
-
*/
|
|
42
|
-
title: string
|
|
43
|
-
date: string | number | Date
|
|
44
|
-
/**
|
|
45
|
-
* Updated Time
|
|
46
|
-
*/
|
|
47
|
-
updated: string | number | Date
|
|
48
|
-
/**
|
|
49
|
-
* i18n
|
|
50
|
-
*/
|
|
51
|
-
lang: string
|
|
52
|
-
/**
|
|
53
|
-
* TODO
|
|
54
|
-
* Read Time
|
|
55
|
-
* @description 阅读时长
|
|
56
|
-
*/
|
|
57
|
-
duration: string
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @description Author
|
|
61
|
-
* @description:zh-CN 作者
|
|
62
|
-
*/
|
|
63
|
-
author: string
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Display sponsor info
|
|
67
|
-
* @description 是否开启赞助
|
|
68
|
-
*/
|
|
69
|
-
sponsor: boolean
|
|
70
|
-
/**
|
|
71
|
-
* Copyright
|
|
72
|
-
* @description 是否显示文章底部版权信息
|
|
73
|
-
*/
|
|
74
|
-
copyright: boolean
|
|
75
|
-
|
|
76
|
-
// schema
|
|
77
|
-
image: NodeRelations<ImageObject | string>
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* cover
|
|
81
|
-
* @description 封面图片
|
|
82
|
-
*/
|
|
83
|
-
cover: string
|
|
84
|
-
/**
|
|
85
|
-
* display toc
|
|
86
|
-
* @description 是否显示目录
|
|
87
|
-
*/
|
|
88
|
-
toc: boolean
|
|
89
|
-
/**
|
|
90
|
-
* display right sidebar
|
|
91
|
-
* @description 是否显示右侧侧边栏
|
|
92
|
-
*/
|
|
93
|
-
aside: boolean
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* enable markdown-body class
|
|
97
|
-
* @description 是否启用默认的 markdown 样式
|
|
98
|
-
*/
|
|
99
|
-
markdown: boolean
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* icon before title
|
|
103
|
-
*/
|
|
104
|
-
icon: string
|
|
105
|
-
/**
|
|
106
|
-
* title color
|
|
107
|
-
*/
|
|
108
|
-
color: string
|
|
109
|
-
/**
|
|
110
|
-
* display comment
|
|
111
|
-
*/
|
|
112
|
-
comment: boolean
|
|
113
|
-
/**
|
|
114
|
-
* post is end
|
|
115
|
-
* @description 是否完结,将在末尾添加衬线字体 Q.E.D.
|
|
116
|
-
*/
|
|
117
|
-
end: boolean
|
|
118
|
-
|
|
119
|
-
// third-party features
|
|
120
|
-
/**
|
|
121
|
-
* use aplayer
|
|
122
|
-
*/
|
|
123
|
-
aplayer: boolean
|
|
124
|
-
/**
|
|
125
|
-
* use katex
|
|
126
|
-
*/
|
|
127
|
-
katex: boolean
|
|
128
|
-
/**
|
|
129
|
-
* use codepen
|
|
130
|
-
*/
|
|
131
|
-
codepen: boolean
|
|
132
|
-
/**
|
|
133
|
-
* use medium-zoom
|
|
134
|
-
* @url https://github.com/francoischalifour/medium-zoom
|
|
135
|
-
*/
|
|
136
|
-
medium_zoom: boolean
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @description:en-US Albums
|
|
140
|
-
* @description:zh-CN 相册
|
|
141
|
-
*/
|
|
142
|
-
albums: Album[]
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* For layout Gallery
|
|
146
|
-
* @description:en-US Photos
|
|
147
|
-
*/
|
|
148
|
-
photos: Photo[]
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @description:zh-CN 是否启用加密,password 存在时默认为 true
|
|
152
|
-
*/
|
|
153
|
-
encrypt: boolean
|
|
154
|
-
/**
|
|
155
|
-
* @description:zh-CN 加密密码
|
|
156
|
-
*/
|
|
157
|
-
password?: string
|
|
158
|
-
/**
|
|
159
|
-
* @description:zh-CN 相册密码
|
|
160
|
-
*/
|
|
161
|
-
gallery_password?: string
|
|
162
|
-
/**
|
|
163
|
-
* @description:zh-CN 加密后的内容
|
|
164
|
-
*/
|
|
165
|
-
encryptedContent?: string
|
|
166
|
-
/**
|
|
167
|
-
* @description:zh-CN 部分加密的内容
|
|
168
|
-
*/
|
|
169
|
-
partiallyEncryptedContents?: string[]
|
|
170
|
-
/**
|
|
171
|
-
* @description:zh-CN 加密后的相册
|
|
172
|
-
*/
|
|
173
|
-
encryptedPhotos?: string
|
|
174
|
-
/**
|
|
175
|
-
* @description:en-US Limit the height of the code block in px
|
|
176
|
-
* @description:zh-CN 限制代码块的高度,单位是 px
|
|
177
|
-
*/
|
|
178
|
-
codeHeightLimit?: number
|
|
179
|
-
/**
|
|
180
|
-
* @description:en-US Source path for client redirection
|
|
181
|
-
* @description:zh-CN 客户端重定向的源路径
|
|
182
|
-
*/
|
|
183
|
-
from?: string | string[]
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface PostFrontMatter extends PageFrontMatter {
|
|
187
|
-
/**
|
|
188
|
-
* post card type, can be bilibili/yuque/...
|
|
189
|
-
*/
|
|
190
|
-
type: string
|
|
191
|
-
/**
|
|
192
|
-
* override url, and jump directly
|
|
193
|
-
*/
|
|
194
|
-
url: string
|
|
195
|
-
/**
|
|
196
|
-
* @description 摘要
|
|
197
|
-
*/
|
|
198
|
-
excerpt: string
|
|
199
|
-
/**
|
|
200
|
-
* @default 'html'
|
|
201
|
-
* render type of excerpt
|
|
202
|
-
* - md: render as raw markdown
|
|
203
|
-
* - html: render as html
|
|
204
|
-
* - text: render as text
|
|
205
|
-
*/
|
|
206
|
-
excerpt_type: 'md' | 'text' | 'html' | 'ai'
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Category
|
|
210
|
-
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
211
|
-
*/
|
|
212
|
-
categories: string | string[]
|
|
213
|
-
/**
|
|
214
|
-
* Tags
|
|
215
|
-
* @description 标签,可以有多个
|
|
216
|
-
*/
|
|
217
|
-
tags: string[]
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* display prev next
|
|
221
|
-
* @description 是否显示前一篇、后一篇导航
|
|
222
|
-
*/
|
|
223
|
-
nav: boolean
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* 置顶
|
|
227
|
-
*/
|
|
228
|
-
top: number
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* is draft
|
|
232
|
-
* @description 是否为草稿
|
|
233
|
-
*/
|
|
234
|
-
draft: boolean
|
|
235
|
-
/**
|
|
236
|
-
* hide in index
|
|
237
|
-
* - true/`all`: hide in index & archive
|
|
238
|
-
* - `index`: hide in index
|
|
239
|
-
* @description 是否隐藏
|
|
240
|
-
*/
|
|
241
|
-
hide: 'index' | boolean
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* when the post is updated more than 30 days ago, show a warning
|
|
245
|
-
* default 30 days, you can set `time_warning` in frontmatter to change it
|
|
246
|
-
*
|
|
247
|
-
* @zh
|
|
248
|
-
* 当文章更新时间超过 30 天时,显示一个警告
|
|
249
|
-
* 默认 30 天,你可以在 frontmatter 中设置 `time_warning` (数字)来修改,单位 ms
|
|
250
|
-
* @example 3600000
|
|
251
|
-
*/
|
|
252
|
-
time_warning: boolean | number
|
|
253
|
-
}
|
|
1
|
+
import type { PageFrontMatter, PostFrontMatter } from './frontmatter'
|
|
254
2
|
|
|
255
3
|
export type Page = Partial<PageFrontMatter>
|
|
256
4
|
export type Post = Partial<PostFrontMatter>
|
|
File without changes
|
|
File without changes
|