-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnico.js
More file actions
32 lines (30 loc) · 815 Bytes
/
nico.js
File metadata and controls
32 lines (30 loc) · 815 Bytes
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
exports = module.exports = {
"sitename": "Vim 中文计划",
"source": "content",
"output": "_site",
"theme": "theme",
"permalink": "{{directory}}/{{filename}}",
"navigation":[
{ "link":"/spec.html", "title":"翻译规范 & 约定" },
{ "link":"/usage.html", "title":"安装 & 使用" },
{ "link":"https://github.com/vimcn/vimcn.github.com/wiki/PLAN", "title":"翻译计划" }
],
"google": {
"id": "UA-15922433-1",
"domain": "vimcn.github.io"
},
"github": "https://github.com/vimcn",
"writers": [
"nico.PageWriter",
"nico.PostWriter",
"nico.FileWriter",
"nico.StaticWriter"
]
}
exports.filters = {
fixlink: function(html) {
// format permalink, ends without .html
html = html.replace(/(href="[^"]+)\.md(">)/ig, "$1$2");
return html;
}
}