-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.ts
94 lines (81 loc) · 2.68 KB
/
theme.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import {hopeTheme} from "vuepress-theme-hope";
import navbar from "./navbar.js";
import sidebar from "./sidebar/index.js";
export default hopeTheme({
hostname: "http://www.wenzhihuai.com/",
logo: "https://github-images.wenzhihuai.com/images/logo.png",
favicon: "/favicon.ico",
// iconAssets: "//at.alicdn.com/t/c/font_2922463_o9q9dxmps9.css",
author: {
name: "Zephery",
url: "https://wenzhihuai.com/article/",
},
repo: "https://github.com/Zephery/MyWebsite",
docsDir: "docs",
// 纯净模式:https://theme-hope.vuejs.press/zh/Zephery/interface/pure.html
pure: true,
breadcrumb: false,
navbar,
sidebar,
footer:
'<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备17092242号-1</a><a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank"><img src="https://github-images.wenzhihuai.com/images/youpailogo6.png" style="float: left;width: 6%;"/></a>',
displayFooter: true,
pageInfo: [
"Author",
"Category",
"Tag",
// "Date",
"Original",
"Word",
"ReadingTime",
],
blog: {
intro: "/about-the-author/",
sidebarDisplay: "mobile",
medias: {
Zhihu: "https://www.zhihu.com/people/wen-zhi-huai-83",
Github: "https://github.com/Zephery",
Gitee: "https://gitee.com/zephery.com.cn",
BiliBili: "https://space.bilibili.com/3118581",
WechatPay: "https://wenzhihuai.com/donate"
},
},
plugins: {
blog: {
excerptLength: 50,
type: [
{
key: "slide",
filter: (page) => page.frontmatter.layout === "Slide",
}
],
},
copyright: {
author: "wenzhihuai.com",
license: "MIT",
triggerLength: 100,
maxLength: 700,
canonical: "https://wenzhihuai.com/",
global: true,
},
feed: {
atom: true,
json: true,
rss: true,
},
mdEnhance: {
align: true,
gfm: true,
echarts: true,
tasklist: true,
},
search: {
isSearchable: (page) => page.path !== "/",
maxSuggestions: 10,
},
},
},
{
custom: true
}
);