-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
331 lines (222 loc) · 12.4 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
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hexo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="Hexo">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
<link rel="alternative" href="/atom.xml" title="Hexo" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">Hexo</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="Search"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-看看会不会改变CNAME" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2018/02/08/看看会不会改变CNAME/" class="article-date">
<time datetime="2018-02-08T14:50:18.000Z" itemprop="datePublished">2018-02-08</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2018/02/08/看看会不会改变CNAME/">看看会不会改变CNAME</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2018/02/08/看看会不会改变CNAME/" data-id="cjdemqqlf000110do24dgbsvf" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-看看这里" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2018/02/08/看看这里/" class="article-date">
<time datetime="2018-02-08T14:42:02.000Z" itemprop="datePublished">2018-02-08</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2018/02/08/看看这里/">看看这里</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>#你好啊</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2018/02/08/看看这里/" data-id="cjdemqqlj000210doopr908ix" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-第二篇" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2018/02/08/第二篇/" class="article-date">
<time datetime="2018-02-08T14:28:21.000Z" itemprop="datePublished">2018-02-08</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2018/02/08/第二篇/">第二篇</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>#今天来看一看</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2018/02/08/第二篇/" data-id="cjdemqqll000310dolszv1dsj" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-Hexo搭建教程" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2018/02/08/Hexo搭建教程/" class="article-date">
<time datetime="2018-02-08T14:27:14.630Z" itemprop="datePublished">2018-02-08</time>
</a>
</div>
<div class="article-inner">
<div class="article-entry" itemprop="articleBody">
<p>#Mac OS X 下Hexo的搭建教程<br>hexo的官网<a href="http://hexo.io" target="_blank" rel="noopener">http://hexo.io</a>上本来是有搭建教程的,可太过精简,身边好多小伙伴都弄不成功。所以我写一个麻烦版的,反正亲测是成功的。</p>
<ul>
<li>安装 cURL: 复制并粘贴入iTerm内 </li>
</ul>
<figure class="highlight vim"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">curl http<span class="variable">s:</span>//raw.github.<span class="keyword">com</span>/creationix/nvm/master/install.<span class="keyword">sh</span> | <span class="keyword">sh</span></span><br></pre></td></tr></table></figure>
<ul>
<li>安装brew 详见<a href="http://brew.sh" target="_blank" rel="noopener">http://brew.sh</a></li>
</ul>
<figure class="highlight mipsasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">ruby -e <span class="string">"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">brew </span><span class="keyword">install </span>wget</span><br></pre></td></tr></table></figure>
<ul>
<li>安装 Wget </li>
</ul>
<figure class="highlight vim"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget -qO- http<span class="variable">s:</span>//raw.github.<span class="keyword">com</span>/creationix/nvm/master/install.<span class="keyword">sh</span> | <span class="keyword">sh</span></span><br></pre></td></tr></table></figure>
<ul>
<li>重启iTerm</li>
</ul>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nvm <span class="keyword">install</span> <span class="number">0.10</span></span><br></pre></td></tr></table></figure>
<ul>
<li>安装 Hexo</li>
</ul>
<figure class="highlight avrasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install -g hexo-<span class="keyword">cli</span></span><br></pre></td></tr></table></figure>
<p><code>输入 which hexo 如有路径则证明安装成功</code></p>
<ul>
<li>创建并进入一个博客文件夹(略)</li>
</ul>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">hexo init</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">npm <span class="keyword">install</span></span><br></pre></td></tr></table></figure>
<ul>
<li>新建博客</li>
</ul>
<figure class="highlight haxe"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hero <span class="keyword">new</span> <span class="type"></span>“博客标题<span class="string">"</span></span><br></pre></td></tr></table></figure>
<ul>
<li>把.md的播客文件转换成html网页格式 </li>
</ul>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo g</span></span><br></pre></td></tr></table></figure>
<ul>
<li>把博客推送到本地服务器 </li>
</ul>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo s</span></span><br></pre></td></tr></table></figure>
<p><code>可以进入终端所提示的地址查看一下html效果</code></p>
<ul>
<li><p>注册github账号并且创建同名的repository账号: yourGitHubName/yourGitHubName.github.io</p>
</li>
<li><p>部署到github上,在你的博客文件夹下编辑文件 _config.yml</p>
<pre><code> deploy:
type: git
repository: git@github.com:yourGitHubName/yourGitHubName.github.io.git
branch: master
(严格遵守缩进格式,第二行空4格,冒号后空1格 )
</code></pre></li>
</ul>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">npm <span class="keyword">install</span> hexo-deployer-git <span class="comment">--save</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">ssh-keygen -t rsa -C “你的邮箱地址<span class="string">"</span></span><br></pre></td></tr></table></figure>
<p>会在家目录下生成一个.ssh文件夹,里面包含两个文件,cat 一下 id_rsa.pub 文件,复制其内容。打开自己的github设置里有一个SSH Keys,添加key(在这里粘贴,名字随意起)。</p>
<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">hexo g</span></span><br><span class="line"></span><br><span class="line"><span class="attribute">hexo d</span></span><br></pre></td></tr></table></figure>
<p>到此,直接进入 yourGitHubName.github.io 就可以访问了</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2018/02/08/Hexo搭建教程/" data-id="cjdemqqla000010do3sdwdb89" class="article-share-link">Share</a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">Archives</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/">February 2018</a><span class="archive-list-count">4</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Recents</h3>
<div class="widget">
<ul>
<li>
<a href="/2018/02/08/看看会不会改变CNAME/">看看会不会改变CNAME</a>
</li>
<li>
<a href="/2018/02/08/看看这里/">看看这里</a>
</li>
<li>
<a href="/2018/02/08/第二篇/">第二篇</a>
</li>
<li>
<a href="/2018/02/08/Hexo搭建教程/">(no title)</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2018 John Doe<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>