Skip to content
Navigation Menu
{{ message }}
forked from ArchLinuxStudio/ArchLinuxTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
284 lines (264 loc) · 9.88 KB
/
Copy pathindex.html
File metadata and controls
284 lines (264 loc) · 9.88 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title>Arch Linux安装使用教程 - ArchTutorial - Arch Linux Studio</title>
<meta
name="description"
content="Arch Linux安装使用教程,每月实时更新!包含从 archlinux安装,魔法充能,到显卡驱动,日常软件的使用等,另附媒体制作,编程等你可能需要的全部内容。让 Arch Linux 成为你的常用系统吧!"
/>
<!-- GSC -->
<meta
name="google-site-verification"
content="I9AUrsDVI86dZZUEJ2wSX4torsBJsq0bihBPHd_Efx4"
/>
<meta name="author" content="Kagarino Kirie " />
<meta
name="keywords"
content="ArchLinux安装,ArchLinux教程,显卡驱动,v2ray,shadowsocks,翻墙,科学上网,Linux"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<!-- Facebook Meta Tags -->
<meta
property="og:url"
content="https://archlinuxstudio.github.io/ArchLinuxTutorial/#/"
/>
<meta property="og:type" content="website" />
<meta property="og:title" content="Arch Linux安装使用教程" />
<meta
property="og:description"
content="Arch Linux安装使用教程 包含从安装/魔法上网/美化/日常/娱乐/编程的全部"
/>
<meta
property="og:image"
content="https://avatars.githubusercontent.com/u/17615884?s=400&v=4"
/>
<meta property="og:site_name" content="ArchLinuxStudio" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary" />
<meta property="twitter:domain" content="archlinuxstudio.github.io" />
<meta
property="twitter:url"
content="https://archlinuxstudio.github.io/ArchLinuxTutorial/#/"
/>
<meta name="twitter:title" content="Arch Linux安装使用教程" />
<meta
name="twitter:description"
content="Arch Linux安装使用教程 包含从安装/魔法上网/美化/日常/娱乐/编程的全部"
/>
<meta
name="twitter:image"
content="https://avatars.githubusercontent.com/u/17615884?s=400&v=4"
/>
<link rel="shortcut icon" href="./arch.png" />
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"
/>
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css"
/>
<style>
.sidebar {
padding: 0 0 0 0;
}
.app-name {
padding-top: 10px;
border-bottom: 4px solid rgb(0, 136, 204);
background-color: rgb(51, 51, 51);
}
.app-name-link img {
width: 70%;
}
.seo-pic {
display: none;
}
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "Arch Linux安装使用教程 - ArchTutorial - Arch Linux Studio",
"image": [
"https://archlinux.org/static/logos/archlinux-logo-dark-90dpi.ebdee92a15b3.png",
"https://archlinux.org/static/logos/archlinux-logo-black-90dpi.0c696e9c0d84.png",
"https://archlinuxstudio.github.io/ArchLinuxTutorial/arch_seo.png"
],
"datePublished": "2020-09-01T08:00:00+08:00",
"dateModified": "2021-04-03T09:20:00+08:00"
}
</script>
</head>
<body>
<img src="./arch.svg" alt="Arch Linux安装使用教程" class="seo-pic" />
<div id="app">加载中...</div>
<script>
window.$docsify = {
loadNavbar: true,
search: {
placeholder: '搜索...',
},
name: 'Arch Linux安装使用教程',
loadSidebar: true,
auto2top: true,
logo: './arch.svg',
topMargin: 90,
notFoundPage: true,
subMaxLevel: 4,
themeColor: 'rgb(23,147,209)',
repo: 'https://github.com/ArchLinuxStudio/ArchLinuxTutorial',
formatUpdated: '{YYYY}-{MM}-{DD}',
pagination: {
previousText: '上一节',
nextText: '下一节',
crossChapter: true,
crossChapterText: true,
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
let edit_url =
'https://github.com/ArchLinuxStudio/ArchLinuxTutorial/blob/master/docs/' +
vm.route.file;
let editHtml = '[📝 编辑本文](' + edit_url + ')\n';
let client_id = '296c581fc4b2a837a1e3';
let client_secret = '7e7f0ad1809fa4a1915430ade04835f6849ab56a';
let date_url =
'https://api.github.com/repos/ArchLinuxStudio/ArchLinuxTutorial/commits?per_page=1&path=docs/' +
vm.config.basePath +
encodeURIComponent(vm.route.file);
fetch(date_url, {
headers: {
Authorization: `${client_id}:${client_secret}`,
},
})
.then((response) => {
return response.json();
})
.then((commits) => {
let modified = commits[0]['commit']['committer'][
'date'
].slice(0, 10);
document.getElementById('last-modified').textContent =
'更新日期: ' + modified;
});
return (
'<span id="last-modified">更新日期: 获取中</span>' +
'\n' +
html +
'\n----\n' +
editHtml
);
});
hook.mounted(function () {
// 添加网站运行时间
let dom = Docsify.dom;
let runTimeNode = dom.create('div');
runTimeNode.className = 'runtime';
runTimeNode.style =
'color: #8590a6;max-width: 80%;margin: 0 auto 20px;padding: 0 15px 0 15px;';
dom.appendTo(dom.find('.content'), runTimeNode);
});
},
],
};
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-pagination@2/dist/docsify-pagination.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="https://unpkg.com/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js"></script>
<script>
addBackToTop({
diameter: 56,
backgroundColor: 'rgb(23,147,209)',
textColor: '#fff',
});
</script>
<script>
let client_id = '296c581fc4b2a837a1e3';
let client_secret = '7e7f0ad1809fa4a1915430ade04835f6849ab56a';
let props = {
clientID: client_id,
clientSecret: client_secret,
repo: 'ArchLinuxTutorialComments',
owner: 'ArchLinuxStudio',
admin: ['KagarinoKiriee'],
// facebook-like distraction free mode
distractionFreeMode: false,
id: decodeURI(location.hash.split('?')[0]),
proxy:
'https://ifuckgfw.com:7788/https://github.com/login/oauth/access_token',
};
let gitalk = new Gitalk(props);
// 哈希路由切换时 重新加载Gitalk
window.addEventListener('hashchange', onHashChange);
function onHashChange() {
props.id = decodeURI(location.hash.split('?')[0]); //如果不切分,在docsify里面的各个段落都会生成新的评论issue
}
</script>
<script>
function change_search_plugin_order() {
let search_plugin = document.getElementsByClassName('search')[0];
let app_name = document.getElementsByClassName('app-name')[0];
search_plugin.parentNode.insertBefore(app_name, search_plugin);
}
setTimeout(change_search_plugin_order, 1);
</script>
<!-- 添加网站运行时间统计 -->
<script>
function siteTime() {
setTimeout(siteTime, 1000);
let seconds = 1000;
let minutes = seconds * 60;
let hours = minutes * 60;
let days = hours * 24;
let today = new Date();
let todayYear = today.getFullYear();
let todayMonth = today.getMonth() + 1;
let todayDate = today.getDate();
let todayHour = today.getHours();
let todayMinute = today.getMinutes();
let todaySecond = today.getSeconds();
let t1 = Date.UTC(2020, 09, 1, 0, 0, 0);
let t2 = Date.UTC(
todayYear,
todayMonth,
todayDate,
todayHour,
todayMinute,
todaySecond
);
let diff = t2 - t1;
let diffDays = Math.floor(diff / days);
let diffHours = Math.floor((diff - diffDays * days) / hours);
let diffMinutes = Math.floor(
(diff - diffDays * days - diffHours * hours) / minutes
);
let diffSeconds = Math.floor(
(diff - diffDays * days - diffHours * hours - diffMinutes * minutes) /
seconds
);
Docsify.dom.find('.runtime').innerHTML =
'ArchLinux Studio已运行 ' +
diffDays +
' 天 ' +
diffHours +
' 小时 ' +
diffMinutes +
' 分 ' +
diffSeconds +
' 秒';
}
// 先让网页加载完,否则 Docsify.dom.find('.runtime') == null
setTimeout(siteTime, 500);
</script>
</body>
</html>
You can’t perform that action at this time.
