forked from sikaozhe1997/Xin-Yue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (107 loc) · 3.1 KB
/
index.html
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
---
---
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<title>Xin Yue</title>
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
<link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css">
<style>
/* gitalk */
.gt-container a {
color: #42b983;
}
.gt-container a:hover {
color: #67C79B;
border-color: #67C79B;
}
.gt-container .gt-svg svg {
fill: #42b983;
}
.gt-container .gt-spinner::before {
border-top-color: #42b983;
}
.gt-container .gt-btn {
background-color: #42b983;
}
.gt-container .gt-btn:hover {
background-color: #67C79B;
}
.gt-container .gt-link {
border-bottom: 1px dotted #42b983;
}
.gt-container .gt-user .is--poping .gt-ico svg {
fill: #42b983;
}
.gt-container .gt-popup .gt-action.is--active:before {
background: #42b983;
}
.gt-container .gt-header-controls-tip {
color: #42b983;
}
.gt-container .gt-comment-username {
color: #42b983;
}
</style>
</head>
<body>
<div id="app"></div>
<script>
gitalkConfig = {
clientID: 'e56517f0c3543ee3bfbf',
clientSecret: '22cd9a04141c76e74a75098164ff404449b71a3e',
repo: 'Xin-Yue',
owner: 'sikaozhe1997',
admin: ['sikaozhe1997','gaocegege','SniperChen','vzxxbacq','zhaobenx'],
distractionFreeMode: false
},
window.$docsify = {
repo: "sikaozhe1997/Xin-Yue",
loadSidebar: "sidebar.html",
subMaxLevel: 2,
search: {
noData: {
'/': '找不到结果!'
},
paths: 'auto',
placeholder: {
'/': '搜索'
}
},
plugins: [
function (hook, vm) {
hook.doneEach(function () {
var label, domObj, main, divEle, gitalk;
label = decodeURI(vm.route.path.split('/').join('').split('.')[0]).substring(0, 49);
domObj = Docsify.dom;
main = domObj.getNode("#main");
/**
* render gittalk
*/
Array.apply(null, document.querySelectorAll("div.gitalk-container")).forEach(function (ele) {
ele.remove()
});
divEle = domObj.create("div");
divEle.id = "gitalk-container-" + label;
divEle.className = "gitalk-container";
divEle.style = "width: " + main.clientWidth + "px; margin: 0 auto 20px;";
domObj.appendTo(domObj.find(".content"), divEle);
gitalk = new Gitalk(Object.assign(gitalkConfig, {
id: !label ? "home" : label
}))
gitalk.render('gitalk-container-' + label)
})
}
]
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
</body>
</html>