valaxy 0.15.10 → 0.15.11
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/bin/valaxy.cjs +1 -1
- package/bin/valaxy.mjs +1 -1
- package/client/App.vue +1 -1
- package/client/components/AppLink.vue +2 -2
- package/client/components/ValaxyMd.vue +1 -1
- package/client/components/ValaxyOverlay.vue +2 -2
- package/client/components/ValaxyPagination.vue +6 -6
- package/client/components/debug/ValaxyDevtools.vue +6 -0
- package/client/composables/dark.ts +37 -0
- package/client/layouts/404.vue +1 -1
- package/client/layouts/layout.vue +2 -2
- package/client/locales/zh-CN.yml +1 -1
- package/client/pages/[...all].vue +2 -0
- package/client/styles/common/transition.scss +23 -0
- package/dist/chunk-3EJGKTUH.mjs +130 -0
- package/dist/chunk-RDNVTVQ5.cjs +129 -0
- package/dist/{config-29a16f62.d.ts → config-e5704a2c.d.ts} +223 -1
- package/dist/node/cli/index.cjs +1 -0
- package/dist/node/cli/index.mjs +2 -0
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +14 -2
- package/dist/node/index.d.ts +14 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.d.cts +3 -220
- package/dist/types/index.d.ts +3 -220
- package/dist/types/index.mjs +1 -1
- package/package.json +12 -11
- package/types/config.ts +6 -0
- package/dist/chunk-2EVEFEO4.mjs +0 -130
- package/dist/chunk-BYK2L2MY.cjs +0 -129
- package/dist/node/cli.cjs +0 -1
- package/dist/node/cli.mjs +0 -2
- /package/dist/node/{cli.d.cts → cli/index.d.cts} +0 -0
- /package/dist/node/{cli.d.ts → cli/index.d.ts} +0 -0
|
@@ -13,6 +13,224 @@ interface ValaxyAddon<AddonOptions = Record<string, any>> {
|
|
|
13
13
|
options?: AddonOptions;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
interface Album {
|
|
17
|
+
/**
|
|
18
|
+
* @description:en-US Album Link
|
|
19
|
+
*/
|
|
20
|
+
url: string;
|
|
21
|
+
/**
|
|
22
|
+
* @description:en-US Album cover
|
|
23
|
+
* url
|
|
24
|
+
*/
|
|
25
|
+
cover: string;
|
|
26
|
+
/**
|
|
27
|
+
* @description:en-US Album caption
|
|
28
|
+
*/
|
|
29
|
+
caption: string;
|
|
30
|
+
/**
|
|
31
|
+
* @description:en-US Album description
|
|
32
|
+
*/
|
|
33
|
+
desc: string;
|
|
34
|
+
}
|
|
35
|
+
interface Photo {
|
|
36
|
+
src: string;
|
|
37
|
+
caption: string;
|
|
38
|
+
desc: string;
|
|
39
|
+
}
|
|
40
|
+
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
41
|
+
interface PageFrontMatter extends Record<string, any> {
|
|
42
|
+
/**
|
|
43
|
+
* Path of post
|
|
44
|
+
* route.path
|
|
45
|
+
* @description 路径
|
|
46
|
+
*/
|
|
47
|
+
path: string;
|
|
48
|
+
/**
|
|
49
|
+
* Title
|
|
50
|
+
* @description 文章标题
|
|
51
|
+
*/
|
|
52
|
+
title: string;
|
|
53
|
+
date: string | number | Date;
|
|
54
|
+
/**
|
|
55
|
+
* Updated Time
|
|
56
|
+
*/
|
|
57
|
+
updated: string | number | Date;
|
|
58
|
+
/**
|
|
59
|
+
* i18n
|
|
60
|
+
*/
|
|
61
|
+
lang: string;
|
|
62
|
+
/**
|
|
63
|
+
* TODO
|
|
64
|
+
* Read Time
|
|
65
|
+
* @description 阅读时长
|
|
66
|
+
*/
|
|
67
|
+
duration: string;
|
|
68
|
+
/**
|
|
69
|
+
* @description Author
|
|
70
|
+
* @description:zh-CN 作者
|
|
71
|
+
*/
|
|
72
|
+
author: string;
|
|
73
|
+
/**
|
|
74
|
+
* Display sponsor info
|
|
75
|
+
* @description 是否开启赞助
|
|
76
|
+
*/
|
|
77
|
+
sponsor: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Copyright
|
|
80
|
+
* @description 是否显示文章底部版权信息
|
|
81
|
+
*/
|
|
82
|
+
copyright: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* cover
|
|
85
|
+
* @description 封面图片
|
|
86
|
+
*/
|
|
87
|
+
cover: string;
|
|
88
|
+
/**
|
|
89
|
+
* display toc
|
|
90
|
+
* @description 是否显示目录
|
|
91
|
+
*/
|
|
92
|
+
toc: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* display right sidebar
|
|
95
|
+
* @description 是否显示右侧侧边栏
|
|
96
|
+
*/
|
|
97
|
+
aside: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* enable markdown-body class
|
|
100
|
+
* @description 是否启用默认的 markdown 样式
|
|
101
|
+
*/
|
|
102
|
+
markdown: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* icon before title
|
|
105
|
+
*/
|
|
106
|
+
icon: string;
|
|
107
|
+
/**
|
|
108
|
+
* title color
|
|
109
|
+
*/
|
|
110
|
+
color: string;
|
|
111
|
+
/**
|
|
112
|
+
* display comment
|
|
113
|
+
*/
|
|
114
|
+
comment: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* post is end
|
|
117
|
+
* @description 是否完结,将在末尾添加衬线字体 Q.E.D.
|
|
118
|
+
*/
|
|
119
|
+
end: boolean;
|
|
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
|
+
* @description:en-US Albums
|
|
139
|
+
* @description:zh-CN 相册
|
|
140
|
+
*/
|
|
141
|
+
albums: Album[];
|
|
142
|
+
/**
|
|
143
|
+
* For layout Gallery
|
|
144
|
+
* @description:en-US Photos
|
|
145
|
+
*/
|
|
146
|
+
photos: Photo[];
|
|
147
|
+
/**
|
|
148
|
+
* @description:zh-CN 是否启用加密,password 存在时默认为 true
|
|
149
|
+
*/
|
|
150
|
+
encrypt: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* @description:zh-CN 加密密码
|
|
153
|
+
*/
|
|
154
|
+
password?: string;
|
|
155
|
+
/**
|
|
156
|
+
* @description:zh-CN 相册密码
|
|
157
|
+
*/
|
|
158
|
+
gallery_password?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @description:zh-CN 加密后的内容
|
|
161
|
+
*/
|
|
162
|
+
encryptedContent?: string;
|
|
163
|
+
/**
|
|
164
|
+
* @description:zh-CN 加密后的相册
|
|
165
|
+
*/
|
|
166
|
+
encryptedPhotos?: string;
|
|
167
|
+
}
|
|
168
|
+
interface PostFrontMatter extends PageFrontMatter {
|
|
169
|
+
/**
|
|
170
|
+
* post card type, can be bilibili/yuque/...
|
|
171
|
+
*/
|
|
172
|
+
type: string;
|
|
173
|
+
/**
|
|
174
|
+
* override url, and jump directly
|
|
175
|
+
*/
|
|
176
|
+
url: string;
|
|
177
|
+
/**
|
|
178
|
+
* @description 摘要
|
|
179
|
+
*/
|
|
180
|
+
excerpt: string;
|
|
181
|
+
/**
|
|
182
|
+
* @default 'html'
|
|
183
|
+
* render type of excerpt
|
|
184
|
+
* - md: render as raw markdown
|
|
185
|
+
* - html: render as html
|
|
186
|
+
* - text: render as text
|
|
187
|
+
*/
|
|
188
|
+
excerpt_type: 'md' | 'text' | 'html' | 'ai';
|
|
189
|
+
/**
|
|
190
|
+
* Category
|
|
191
|
+
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
192
|
+
*/
|
|
193
|
+
categories: string | string[];
|
|
194
|
+
/**
|
|
195
|
+
* Tags
|
|
196
|
+
* @description 标签,可以有多个
|
|
197
|
+
*/
|
|
198
|
+
tags: string[];
|
|
199
|
+
/**
|
|
200
|
+
* display prev next
|
|
201
|
+
* @description 是否显示前一篇、后一篇导航
|
|
202
|
+
*/
|
|
203
|
+
nav: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* 置顶
|
|
206
|
+
*/
|
|
207
|
+
top: number;
|
|
208
|
+
/**
|
|
209
|
+
* is draft
|
|
210
|
+
* @description 是否为草稿
|
|
211
|
+
*/
|
|
212
|
+
draft: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* hide in index
|
|
215
|
+
* - true/`all`: hide in index & archive
|
|
216
|
+
* - `index`: hide in index
|
|
217
|
+
* @description 是否隐藏
|
|
218
|
+
*/
|
|
219
|
+
hide: 'index' | boolean;
|
|
220
|
+
/**
|
|
221
|
+
* when the post is updated more than 30 days ago, show a warning
|
|
222
|
+
* default 30 days, you can set `time_warning` in frontmatter to change it
|
|
223
|
+
*
|
|
224
|
+
* @zh
|
|
225
|
+
* 当文章更新时间超过 30 天时,显示一个警告
|
|
226
|
+
* 默认 30 天,你可以在 frontmatter 中设置 `time_warning` (数字)来修改,单位 ms
|
|
227
|
+
* @example 3600000
|
|
228
|
+
*/
|
|
229
|
+
time_warning: boolean | number;
|
|
230
|
+
}
|
|
231
|
+
type Page = Partial<PageFrontMatter>;
|
|
232
|
+
type Post = Partial<PostFrontMatter>;
|
|
233
|
+
|
|
16
234
|
interface FuseListItem {
|
|
17
235
|
title: string;
|
|
18
236
|
excerpt?: string;
|
|
@@ -166,6 +384,10 @@ interface SiteConfig {
|
|
|
166
384
|
keys: FuseOptions<FuseListItem>['keys'];
|
|
167
385
|
};
|
|
168
386
|
};
|
|
387
|
+
/**
|
|
388
|
+
* set post default frontmatter
|
|
389
|
+
*/
|
|
390
|
+
frontmatter: Partial<PostFrontMatter>;
|
|
169
391
|
/**
|
|
170
392
|
* comment: waline/...
|
|
171
393
|
*/
|
|
@@ -346,4 +568,4 @@ type UserSiteConfig = PartialDeep<SiteConfig>;
|
|
|
346
568
|
*/
|
|
347
569
|
type UserValaxyConfig<ThemeConfig = DefaultTheme.Config> = PartialDeep<ValaxyConfig<ThemeConfig>>;
|
|
348
570
|
|
|
349
|
-
export { FuseListItem as F, PartialDeep as P, RuntimeConfig as R, SiteConfig as S, UserSiteConfig as U, ValaxyConfig as V, ValaxyAddon as a,
|
|
571
|
+
export { Album as A, ExcerptType as E, FuseListItem as F, PartialDeep as P, RuntimeConfig as R, SiteConfig as S, UserSiteConfig as U, ValaxyConfig as V, ValaxyAddon as a, Post as b, SocialLink as c, UserValaxyConfig as d, Photo as e, PageFrontMatter as f, PostFrontMatter as g, Page as h };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRDNVTVQ5cjs = require('../../chunk-RDNVTVQ5.cjs');require('../../chunk-YDNPXS5U.cjs');exports.cli = _chunkRDNVTVQ5cjs.F; exports.run = _chunkRDNVTVQ5cjs.G;
|
package/dist/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRDNVTVQ5cjs = require('../chunk-RDNVTVQ5.cjs');require('../chunk-YDNPXS5U.cjs');exports.build = _chunkRDNVTVQ5cjs.B; exports.cli = _chunkRDNVTVQ5cjs.F; exports.createServer = _chunkRDNVTVQ5cjs.E; exports.defaultSiteConfig = _chunkRDNVTVQ5cjs.t; exports.defaultValaxyConfig = _chunkRDNVTVQ5cjs.u; exports.defineAddon = _chunkRDNVTVQ5cjs.n; exports.defineConfig = _chunkRDNVTVQ5cjs.s; exports.defineSiteConfig = _chunkRDNVTVQ5cjs.q; exports.defineTheme = _chunkRDNVTVQ5cjs.p; exports.defineUnoSetup = _chunkRDNVTVQ5cjs.v; exports.defineValaxyAddon = _chunkRDNVTVQ5cjs.m; exports.defineValaxyConfig = _chunkRDNVTVQ5cjs.r; exports.defineValaxyTheme = _chunkRDNVTVQ5cjs.o; exports.ensurePrefix = _chunkRDNVTVQ5cjs.d; exports.getGitTimestamp = _chunkRDNVTVQ5cjs.a; exports.getIndexHtml = _chunkRDNVTVQ5cjs.A; exports.isExternal = _chunkRDNVTVQ5cjs.b; exports.isPath = _chunkRDNVTVQ5cjs.f; exports.mergeValaxyConfig = _chunkRDNVTVQ5cjs.g; exports.mergeViteConfigs = _chunkRDNVTVQ5cjs.z; exports.postProcessForSSG = _chunkRDNVTVQ5cjs.D; exports.processValaxyOptions = _chunkRDNVTVQ5cjs.w; exports.resolveAddonConfig = _chunkRDNVTVQ5cjs.j; exports.resolveImportPath = _chunkRDNVTVQ5cjs.l; exports.resolveOptions = _chunkRDNVTVQ5cjs.x; exports.resolveThemeValaxyConfig = _chunkRDNVTVQ5cjs.y; exports.resolveValaxyConfig = _chunkRDNVTVQ5cjs.i; exports.resolveValaxyConfigFromRoot = _chunkRDNVTVQ5cjs.h; exports.run = _chunkRDNVTVQ5cjs.G; exports.slash = _chunkRDNVTVQ5cjs.c; exports.ssgBuild = _chunkRDNVTVQ5cjs.C; exports.toAtFS = _chunkRDNVTVQ5cjs.e; exports.transformObject = _chunkRDNVTVQ5cjs.k;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ViteSSGOptions } from 'vite-ssg';
|
|
2
|
-
export { cli, run } from './cli.cjs';
|
|
2
|
+
export { cli, run } from './cli/index.cjs';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
5
|
+
import { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-e5704a2c.js';
|
|
6
6
|
import * as DefaultTheme from 'valaxy/default-theme';
|
|
7
7
|
import Vue from '@vitejs/plugin-vue';
|
|
8
8
|
import Components from 'unplugin-vue-components/vite';
|
|
@@ -116,8 +116,20 @@ interface ValaxyNode {
|
|
|
116
116
|
version: string;
|
|
117
117
|
hooks: Hookable<ValaxyHooks>;
|
|
118
118
|
hook: ValaxyNode['hooks']['hook'];
|
|
119
|
+
options: ResolvedValaxyOptions;
|
|
119
120
|
}
|
|
120
121
|
interface ValaxyExtendConfig {
|
|
122
|
+
/**
|
|
123
|
+
* internal modules
|
|
124
|
+
*/
|
|
125
|
+
modules: {
|
|
126
|
+
rss: {
|
|
127
|
+
/**
|
|
128
|
+
* enable rss
|
|
129
|
+
*/
|
|
130
|
+
enable: boolean;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
121
133
|
/**
|
|
122
134
|
* Markdown Feature
|
|
123
135
|
*/
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ViteSSGOptions } from 'vite-ssg';
|
|
2
|
-
export { cli, run } from './cli.js';
|
|
2
|
+
export { cli, run } from './cli/index.js';
|
|
3
3
|
import * as vite from 'vite';
|
|
4
4
|
import { UserConfig, InlineConfig } from 'vite';
|
|
5
|
-
import { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-
|
|
5
|
+
import { V as ValaxyConfig, P as PartialDeep, a as ValaxyAddon, R as RuntimeConfig, U as UserSiteConfig, S as SiteConfig } from '../config-e5704a2c.js';
|
|
6
6
|
import * as DefaultTheme from 'valaxy/default-theme';
|
|
7
7
|
import Vue from '@vitejs/plugin-vue';
|
|
8
8
|
import Components from 'unplugin-vue-components/vite';
|
|
@@ -116,8 +116,20 @@ interface ValaxyNode {
|
|
|
116
116
|
version: string;
|
|
117
117
|
hooks: Hookable<ValaxyHooks>;
|
|
118
118
|
hook: ValaxyNode['hooks']['hook'];
|
|
119
|
+
options: ResolvedValaxyOptions;
|
|
119
120
|
}
|
|
120
121
|
interface ValaxyExtendConfig {
|
|
122
|
+
/**
|
|
123
|
+
* internal modules
|
|
124
|
+
*/
|
|
125
|
+
modules: {
|
|
126
|
+
rss: {
|
|
127
|
+
/**
|
|
128
|
+
* enable rss
|
|
129
|
+
*/
|
|
130
|
+
enable: boolean;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
121
133
|
/**
|
|
122
134
|
* Markdown Feature
|
|
123
135
|
*/
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{A
|
|
2
|
+
import{A,B,C,D,E,F,G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-3EJGKTUH.mjs";import"../chunk-GY4S4RDR.mjs";export{B as build,F as cli,E as createServer,t as defaultSiteConfig,u as defaultValaxyConfig,n as defineAddon,s as defineConfig,q as defineSiteConfig,p as defineTheme,v as defineUnoSetup,m as defineValaxyAddon,r as defineValaxyConfig,o as defineValaxyTheme,d as ensurePrefix,a as getGitTimestamp,A as getIndexHtml,b as isExternal,f as isPath,g as mergeValaxyConfig,z as mergeViteConfigs,D as postProcessForSSG,w as processValaxyOptions,j as resolveAddonConfig,l as resolveImportPath,x as resolveOptions,y as resolveThemeValaxyConfig,i as resolveValaxyConfig,h as resolveValaxyConfigFromRoot,G as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,228 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { b as Post } from '../config-e5704a2c.js';
|
|
2
|
+
export { A as Album, E as ExcerptType, F as FuseListItem, h as Page, f as PageFrontMatter, P as PartialDeep, e as Photo, g as PostFrontMatter, R as RuntimeConfig, S as SiteConfig, c as SocialLink, U as UserSiteConfig, d as UserValaxyConfig, a as ValaxyAddon, V as ValaxyConfig } from '../config-e5704a2c.js';
|
|
2
3
|
import * as DefaultTheme from 'valaxy/default-theme';
|
|
3
4
|
export { DefaultTheme };
|
|
4
5
|
import 'medium-zoom';
|
|
5
6
|
import '@vueuse/integrations/useFuse';
|
|
6
7
|
import 'vanilla-lazyload';
|
|
7
8
|
|
|
8
|
-
interface Album {
|
|
9
|
-
/**
|
|
10
|
-
* @description:en-US Album Link
|
|
11
|
-
*/
|
|
12
|
-
url: string;
|
|
13
|
-
/**
|
|
14
|
-
* @description:en-US Album cover
|
|
15
|
-
* url
|
|
16
|
-
*/
|
|
17
|
-
cover: string;
|
|
18
|
-
/**
|
|
19
|
-
* @description:en-US Album caption
|
|
20
|
-
*/
|
|
21
|
-
caption: string;
|
|
22
|
-
/**
|
|
23
|
-
* @description:en-US Album description
|
|
24
|
-
*/
|
|
25
|
-
desc: string;
|
|
26
|
-
}
|
|
27
|
-
interface Photo {
|
|
28
|
-
src: string;
|
|
29
|
-
caption: string;
|
|
30
|
-
desc: string;
|
|
31
|
-
}
|
|
32
|
-
type ExcerptType = 'md' | 'html' | 'text' | 'ai';
|
|
33
|
-
interface PageFrontMatter extends Record<string, any> {
|
|
34
|
-
/**
|
|
35
|
-
* Path of post
|
|
36
|
-
* route.path
|
|
37
|
-
* @description 路径
|
|
38
|
-
*/
|
|
39
|
-
path: string;
|
|
40
|
-
/**
|
|
41
|
-
* Title
|
|
42
|
-
* @description 文章标题
|
|
43
|
-
*/
|
|
44
|
-
title: string;
|
|
45
|
-
date: string | number | Date;
|
|
46
|
-
/**
|
|
47
|
-
* Updated Time
|
|
48
|
-
*/
|
|
49
|
-
updated: string | number | Date;
|
|
50
|
-
/**
|
|
51
|
-
* i18n
|
|
52
|
-
*/
|
|
53
|
-
lang: string;
|
|
54
|
-
/**
|
|
55
|
-
* TODO
|
|
56
|
-
* Read Time
|
|
57
|
-
* @description 阅读时长
|
|
58
|
-
*/
|
|
59
|
-
duration: string;
|
|
60
|
-
/**
|
|
61
|
-
* @description Author
|
|
62
|
-
* @description:zh-CN 作者
|
|
63
|
-
*/
|
|
64
|
-
author: string;
|
|
65
|
-
/**
|
|
66
|
-
* Display sponsor info
|
|
67
|
-
* @description 是否开启赞助
|
|
68
|
-
*/
|
|
69
|
-
sponsor: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Copyright
|
|
72
|
-
* @description 是否显示文章底部版权信息
|
|
73
|
-
*/
|
|
74
|
-
copyright: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* cover
|
|
77
|
-
* @description 封面图片
|
|
78
|
-
*/
|
|
79
|
-
cover: string;
|
|
80
|
-
/**
|
|
81
|
-
* display toc
|
|
82
|
-
* @description 是否显示目录
|
|
83
|
-
*/
|
|
84
|
-
toc: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* display right sidebar
|
|
87
|
-
* @description 是否显示右侧侧边栏
|
|
88
|
-
*/
|
|
89
|
-
aside: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* enable markdown-body class
|
|
92
|
-
* @description 是否启用默认的 markdown 样式
|
|
93
|
-
*/
|
|
94
|
-
markdown: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* icon before title
|
|
97
|
-
*/
|
|
98
|
-
icon: string;
|
|
99
|
-
/**
|
|
100
|
-
* title color
|
|
101
|
-
*/
|
|
102
|
-
color: string;
|
|
103
|
-
/**
|
|
104
|
-
* display comment
|
|
105
|
-
*/
|
|
106
|
-
comment: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* post is end
|
|
109
|
-
* @description 是否完结,将在末尾添加衬线字体 Q.E.D.
|
|
110
|
-
*/
|
|
111
|
-
end: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* use aplayer
|
|
114
|
-
*/
|
|
115
|
-
aplayer: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* use katex
|
|
118
|
-
*/
|
|
119
|
-
katex: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* use codepen
|
|
122
|
-
*/
|
|
123
|
-
codepen: boolean;
|
|
124
|
-
/**
|
|
125
|
-
* use medium-zoom
|
|
126
|
-
* @url https://github.com/francoischalifour/medium-zoom
|
|
127
|
-
*/
|
|
128
|
-
medium_zoom: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* @description:en-US Albums
|
|
131
|
-
* @description:zh-CN 相册
|
|
132
|
-
*/
|
|
133
|
-
albums: Album[];
|
|
134
|
-
/**
|
|
135
|
-
* For layout Gallery
|
|
136
|
-
* @description:en-US Photos
|
|
137
|
-
*/
|
|
138
|
-
photos: Photo[];
|
|
139
|
-
/**
|
|
140
|
-
* @description:zh-CN 是否启用加密,password 存在时默认为 true
|
|
141
|
-
*/
|
|
142
|
-
encrypt: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* @description:zh-CN 加密密码
|
|
145
|
-
*/
|
|
146
|
-
password?: string;
|
|
147
|
-
/**
|
|
148
|
-
* @description:zh-CN 相册密码
|
|
149
|
-
*/
|
|
150
|
-
gallery_password?: string;
|
|
151
|
-
/**
|
|
152
|
-
* @description:zh-CN 加密后的内容
|
|
153
|
-
*/
|
|
154
|
-
encryptedContent?: string;
|
|
155
|
-
/**
|
|
156
|
-
* @description:zh-CN 加密后的相册
|
|
157
|
-
*/
|
|
158
|
-
encryptedPhotos?: string;
|
|
159
|
-
}
|
|
160
|
-
interface PostFrontMatter extends PageFrontMatter {
|
|
161
|
-
/**
|
|
162
|
-
* post card type, can be bilibili/yuque/...
|
|
163
|
-
*/
|
|
164
|
-
type: string;
|
|
165
|
-
/**
|
|
166
|
-
* override url, and jump directly
|
|
167
|
-
*/
|
|
168
|
-
url: string;
|
|
169
|
-
/**
|
|
170
|
-
* @description 摘要
|
|
171
|
-
*/
|
|
172
|
-
excerpt: string;
|
|
173
|
-
/**
|
|
174
|
-
* @default 'html'
|
|
175
|
-
* render type of excerpt
|
|
176
|
-
* - md: render as raw markdown
|
|
177
|
-
* - html: render as html
|
|
178
|
-
* - text: render as text
|
|
179
|
-
*/
|
|
180
|
-
excerpt_type: 'md' | 'text' | 'html' | 'ai';
|
|
181
|
-
/**
|
|
182
|
-
* Category
|
|
183
|
-
* @description 分类,若为数组,则按顺序代表多层文件夹
|
|
184
|
-
*/
|
|
185
|
-
categories: string | string[];
|
|
186
|
-
/**
|
|
187
|
-
* Tags
|
|
188
|
-
* @description 标签,可以有多个
|
|
189
|
-
*/
|
|
190
|
-
tags: string[];
|
|
191
|
-
/**
|
|
192
|
-
* display prev next
|
|
193
|
-
* @description 是否显示前一篇、后一篇导航
|
|
194
|
-
*/
|
|
195
|
-
nav: boolean;
|
|
196
|
-
/**
|
|
197
|
-
* 置顶
|
|
198
|
-
*/
|
|
199
|
-
top: number;
|
|
200
|
-
/**
|
|
201
|
-
* is draft
|
|
202
|
-
* @description 是否为草稿
|
|
203
|
-
*/
|
|
204
|
-
draft: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* hide in index
|
|
207
|
-
* - true/`all`: hide in index & archive
|
|
208
|
-
* - `index`: hide in index
|
|
209
|
-
* @description 是否隐藏
|
|
210
|
-
*/
|
|
211
|
-
hide: 'index' | boolean;
|
|
212
|
-
/**
|
|
213
|
-
* when the post is updated more than 30 days ago, show a warning
|
|
214
|
-
* default 30 days, you can set `time_warning` in frontmatter to change it
|
|
215
|
-
*
|
|
216
|
-
* @zh
|
|
217
|
-
* 当文章更新时间超过 30 天时,显示一个警告
|
|
218
|
-
* 默认 30 天,你可以在 frontmatter 中设置 `time_warning` (数字)来修改,单位 ms
|
|
219
|
-
* @example 3600000
|
|
220
|
-
*/
|
|
221
|
-
time_warning: boolean | number;
|
|
222
|
-
}
|
|
223
|
-
type Page = Partial<PageFrontMatter>;
|
|
224
|
-
type Post = Partial<PostFrontMatter>;
|
|
225
|
-
|
|
226
9
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
227
10
|
interface Header {
|
|
228
11
|
/**
|
|
@@ -268,4 +51,4 @@ interface PageDataPayload {
|
|
|
268
51
|
}
|
|
269
52
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
270
53
|
|
|
271
|
-
export {
|
|
54
|
+
export { CleanUrlsMode, HeadConfig, Header, PageData, PageDataPayload, Post };
|