valaxy 0.18.9 → 0.19.1

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.
Files changed (44) hide show
  1. package/client/App.vue +1 -10
  2. package/client/components/ValaxyMd.vue +1 -1
  3. package/client/components/builtin/ValaxyMermaid.vue +4 -3
  4. package/client/composables/aside.ts +12 -5
  5. package/client/composables/dark.ts +77 -38
  6. package/client/composables/layout.ts +10 -2
  7. package/client/composables/sidebar.ts +41 -2
  8. package/client/locales/zh-CN.yml +1 -1
  9. package/client/main.ts +12 -10
  10. package/client/setup/main.ts +0 -2
  11. package/client/shims.d.ts +3 -0
  12. package/client/stores/app.ts +20 -4
  13. package/client/styles/css/css-vars.css +19 -0
  14. package/client/styles/{global/index.scss → css/main.css} +1 -1
  15. package/client/styles/css-vars.scss +1 -1
  16. package/client/styles/index.scss +0 -1
  17. package/client/styles/palette.scss +0 -18
  18. package/client/utils/router.ts +48 -0
  19. package/dist/chunk-O2T7UBQW.cjs +156 -0
  20. package/dist/chunk-W2X2FWTK.mjs +157 -0
  21. package/dist/{config-Kdq8Mya1.d.cts → config-Bz-Xbvue.d.cts} +102 -26
  22. package/dist/{config-Kdq8Mya1.d.ts → config-Bz-Xbvue.d.ts} +102 -26
  23. package/dist/node/cli/index.cjs +1 -1
  24. package/dist/node/cli/index.mjs +1 -1
  25. package/dist/node/index.cjs +1 -1
  26. package/dist/node/index.d.cts +2 -1
  27. package/dist/node/index.d.ts +2 -1
  28. package/dist/node/index.mjs +1 -1
  29. package/dist/types/index.cjs +1 -1
  30. package/dist/types/index.d.cts +7 -3
  31. package/dist/types/index.d.ts +7 -3
  32. package/dist/types/index.mjs +1 -1
  33. package/package.json +20 -18
  34. package/types/config.ts +5 -1
  35. package/types/default-theme.ts +38 -0
  36. package/types/frontmatter/index.ts +2 -0
  37. package/types/frontmatter/page.ts +191 -0
  38. package/types/frontmatter/post.ts +103 -0
  39. package/types/index.ts +1 -0
  40. package/types/posts.ts +1 -253
  41. package/dist/chunk-4B74DZJ5.cjs +0 -149
  42. package/dist/chunk-F2X3NOEJ.mjs +0 -150
  43. /package/dist/{chunk-42NDXDT3.mjs → chunk-7VTZAWDO.mjs} +0 -0
  44. /package/dist/{chunk-YO6XYYV3.cjs → chunk-I6UPHJXQ.cjs} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.18.9",
4
+ "version": "0.19.1",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -57,21 +57,22 @@
57
57
  "node": "^14.18.0 || >=16.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@antfu/utils": "^0.7.8",
60
+ "@antfu/utils": "^0.7.10",
61
61
  "@ctrl/tinycolor": "^4.1.0",
62
62
  "@iconify-json/carbon": "^1.1.36",
63
63
  "@iconify-json/ri": "^1.1.21",
64
64
  "@intlify/unplugin-vue-i18n": "^4.0.0",
65
+ "@types/js-yaml": "^4.0.9",
65
66
  "@types/katex": "^0.16.7",
66
- "@unhead/addons": "^1.9.14",
67
- "@unhead/schema-org": "^1.9.14",
68
- "@unhead/vue": "^1.9.14",
67
+ "@unhead/addons": "^1.9.15",
68
+ "@unhead/schema-org": "^1.9.15",
69
+ "@unhead/vue": "^1.9.15",
69
70
  "@vitejs/plugin-vue": "^5.0.5",
70
- "@vue/devtools-api": "^7.3.4",
71
+ "@vue/devtools-api": "^7.3.5",
71
72
  "@vueuse/core": "^10.11.0",
72
73
  "@vueuse/integrations": "^10.11.0",
73
74
  "consola": "^3.2.3",
74
- "critters": "^0.0.22",
75
+ "critters": "^0.0.24",
75
76
  "cross-spawn": "^7.0.3",
76
77
  "css-i18n": "^0.0.2",
77
78
  "date-fns": "^3.6.0",
@@ -89,8 +90,9 @@
89
90
  "is-installed-globally": "^1.0.0",
90
91
  "jiti": "^1.21.6",
91
92
  "js-base64": "^3.7.7",
92
- "katex": "^0.16.10",
93
- "lru-cache": "^10.2.2",
93
+ "js-yaml": "^4.1.0",
94
+ "katex": "^0.16.11",
95
+ "lru-cache": "^10.4.0",
94
96
  "markdown-it": "^14.1.0",
95
97
  "markdown-it-anchor": "^9.0.1",
96
98
  "markdown-it-attrs": "^4.1.6",
@@ -110,23 +112,23 @@
110
112
  "pinia": "^2.1.7",
111
113
  "qrcode": "^1.5.3",
112
114
  "sass": "^1.77.6",
113
- "shiki": "^1.9.0",
114
- "star-markdown-css": "^0.4.2",
115
- "unocss": "^0.61.0",
116
- "unplugin-vue-components": "^0.27.0",
115
+ "shiki": "^1.10.3",
116
+ "star-markdown-css": "^0.5.1",
117
+ "unocss": "^0.61.3",
118
+ "unplugin-vue-components": "^0.27.2",
117
119
  "unplugin-vue-markdown": "^0.26.2",
118
- "unplugin-vue-router": "^0.9.1",
120
+ "unplugin-vue-router": "^0.10.0",
119
121
  "vanilla-lazyload": "^19.1.3",
120
- "vite": "^5.3.1",
121
- "vite-plugin-vue-devtools": "^7.3.4",
122
+ "vite": "^5.3.3",
123
+ "vite-plugin-vue-devtools": "^7.3.5",
122
124
  "vite-plugin-vue-layouts": "0.11.0",
123
125
  "vite-ssg": "0.23.7",
124
126
  "vite-ssg-sitemap": "0.6.1",
125
- "vue": "^3.4.30",
127
+ "vue": "^3.4.31",
126
128
  "vue-i18n": "^9.13.1",
127
129
  "vue-router": "^4.4.0",
128
130
  "yargs": "^17.7.2",
129
- "@valaxyjs/devtools": "0.18.9"
131
+ "@valaxyjs/devtools": "0.19.1"
130
132
  },
131
133
  "devDependencies": {
132
134
  "@mdit-vue/plugin-component": "^2.1.3",
package/types/config.ts CHANGED
@@ -4,7 +4,7 @@ import type { ILazyLoadOptions } from 'vanilla-lazyload'
4
4
  import type { RouteRecordRaw } from 'vue-router'
5
5
  import type { ValaxyAddon } from '../types'
6
6
  import type { DefaultTheme } from './default-theme'
7
- import type { PostFrontMatter } from './posts'
7
+ import type { PostFrontMatter } from './frontmatter'
8
8
  import type { FuseListItem } from './node'
9
9
 
10
10
  import './default-theme'
@@ -104,6 +104,10 @@ export interface SiteConfig {
104
104
  * @description 状态
105
105
  */
106
106
  status: {
107
+ /**
108
+ * Emoji representation of your status like '👨‍💻'
109
+ * @description 你的状态的 Emoji 表示,如 '👨‍💻'
110
+ */
107
111
  emoji: string
108
112
  /**
109
113
  * show when hover emoji
@@ -1,6 +1,44 @@
1
+ import type { UseDarkOptions } from '@vueuse/core'
2
+
1
3
  // eslint-disable-next-line ts/no-namespace
2
4
  export namespace DefaultTheme {
3
5
  export interface Config {
6
+ valaxyDarkOptions?: {
7
+ /**
8
+ * Options for `useDark`
9
+ * disableTransition default is `true`
10
+ * Its options are not computed, init when loaded.
11
+ * @see https://vueuse.org/core/useDark
12
+ * @url https://paco.me/writing/disable-theme-transitions
13
+ *
14
+ * @zh `useDark` 的选项
15
+ * disableTransition 默认为 `true`,不会进行渐变过渡,这是 VueUse 的默认行为
16
+ */
17
+ useDarkOptions?: UseDarkOptions
18
+ /**
19
+ * Enable circle transition when toggling dark mode
20
+ * Then use `toggleDarkWithTransition` instead of `toggleDark`
21
+ * @zh 启用圆形过渡切换暗黑模式
22
+ */
23
+ circleTransition?: boolean
24
+
25
+ /**
26
+ * Theme color
27
+ * @zh 主题色
28
+ */
29
+ themeColor?: {
30
+ /**
31
+ * Theme color for light mode
32
+ * @zh 亮色主题色
33
+ */
34
+ light?: string
35
+ /**
36
+ * Theme color for dark mode
37
+ * @zh 暗色主题色
38
+ */
39
+ dark?: string
40
+ }
41
+ }
4
42
  /**
5
43
  * Custom header levels of outline in the aside component.
6
44
  *
@@ -0,0 +1,2 @@
1
+ export * from './page'
2
+ export * from './post'
@@ -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
@@ -2,6 +2,7 @@
2
2
  export * from './addon'
3
3
  export * from './config'
4
4
  export * from './data'
5
+ export * from './frontmatter'
5
6
  export * from './posts'
6
7
 
7
8
  // used in node, but without node deps
package/types/posts.ts CHANGED
@@ -1,256 +1,4 @@
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 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>