-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.js
126 lines (113 loc) · 2.83 KB
/
config.example.js
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
export const api = {
url: "https://api.example.com"
};
export const publicApi = {
url: "https://api.example.com"
};
export const siteName = "yourSiteName";
export const mainAuthor = "yourName";
export const lang = "ja";
export const locale = "ja_JP";
export const url = "http://localhost:3000";
export const favicon = {
url: "your/favicon.ico",
type: "img"
};
export const defaultImage = "defaultImage.jpg";
// NOTE: NTML support
export const title = "Your site title";
export const subTitle = "your site subtitle";
export const defaultRobotsMeta = "noarchive, nofollow, noimageindex, noindex";
export const archivesPage = {
titlePlaceholder: "filter by title",
pathPlaceholder: "filter by path",
found: "posts"
};
export const tagsPage = {
titlePlaceholder: "filter by tag name",
found: "tags"
};
export const headerItems = [
{
url: "/",
position: "left", //left or right
text: "Home",
content: "Home" // HTML support
}
];
export const coverBottomItems = [
{
url: "/",
position: "left", //left or right
text: "Home",
content: "Home" // HTML support
}
];
export const pinned = [
{ title: "title1", description: "example description1", url: "/" },
{ title: "title2", description: "example description2", url: "/" },
{ title: "title3", description: "example description3", url: "/" }
];
// NOTE: HTML support
export const copyrights = "© jhon due";
export const footerItems = [
{
url: "/",
text: "home"
},
{
url: "/about",
text: "about"
}
];
// Inject <meta> to all pages. Only supports `name` and `content`.
export const injectMetas = [
{
name: "metaName",
content: "metaContent"
}
];
// NOTE: inject external resource (perhaps from CDN) to under the <head>.
export const externalResources = [
{
kind: "js",
key: "mermaid", // must be same with registerd db record key
async: false,
src: "https://unpkg.com/[email protected]/dist/mermaid.min.js",
code: {
type: "text/javascript",
onLoad: true,
code: `mermaid.initialize({startOnLoad:true});
mermaid.contentLoaded();
`
}
},
{
kind: "js",
key: "mathjax", // must be same with registerd db record key
async: false,
src: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_CHTML",
code: {
async: false,
type: "text/x-mathjax-config",
onLoad: true,
code: `MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
processEscapes: true
},
CommonHTML: { matchFontHeight: false }
});`
}
}
];
// Should not send request list to API server
export const filterRequestPaths = [
"**.svg",
"**.jpg",
"**.png",
"**.xml",
"**.ico",
"**.webp"
];