-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
333 lines (275 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
332
333
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>A simple blog</title>
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">
<meta name="author" content="Riley" /><meta name="description" content="Hugo theme even example site." /><meta name="keywords" content="Hugo, theme, even" />
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-139404881-1', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<meta name="generator" content="Hugo 0.55.4 with even 4.0.0" />
<link rel="canonical" href="https://rileyng.github.io/" />
<link href="https://rileyng.github.io/index.xml" rel="alternate" type="application/rss+xml" title="A simple blog" />
<link href="https://rileyng.github.io/index.xml" rel="feed" type="application/rss+xml" title="A simple blog" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<link href="/dist/even.292310ac.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">
<meta property="og:title" content="A simple blog" />
<meta property="og:description" content="Hugo theme even example site." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://rileyng.github.io/" />
<meta property="og:updated_time" content="2019-05-10T15:42:45+08:00"/>
<meta itemprop="name" content="A simple blog">
<meta itemprop="description" content="Hugo theme even example site.">
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="A simple blog"/>
<meta name="twitter:description" content="Hugo theme even example site."/>
<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="/" class="logo">-rwxr--r--</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
<a href="/">
<li class="mobile-menu-item">Home</li>
</a><a href="/post/">
<li class="mobile-menu-item">Archives</li>
</a><a href="/tags/">
<li class="mobile-menu-item">Tags</li>
</a><a href="/categories/">
<li class="mobile-menu-item">Categories</li>
</a><a href="/about/">
<li class="mobile-menu-item">About</li>
</a>
</ul>
</nav>
<div class="container" id="mobile-panel">
<header id="header" class="header">
<div class="logo-wrapper">
<a href="/" class="logo">-rwxr--r--</a>
</div>
<nav class="site-navbar">
<ul id="menu" class="menu">
<li class="menu-item">
<a class="menu-item-link" href="/">Home</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/post/">Archives</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/tags/">Tags</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/categories/">Categories</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/about/">About</a>
</li>
</ul>
</nav>
</header>
<main id="main" class="main">
<div class="content-wrapper">
<div id="content" class="content">
<section id="posts" class="posts">
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/hugo-rss/">Hugo 博客 Rss 全文输出设置</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-05-10 </span>
<div class="post-category">
<a href="/categories/blog/"> blog </a>
</div>
<span class="more-meta"> 636 words </span>
<span class="more-meta"> 2 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
<p>因为平常就用 rss 订阅新闻的习惯,所以也想订阅一下自己的博客,even 这个主题直接在页面下面就有 rss 订阅链接的按钮。但是点进去之后发现输出的 rss 内容只有摘要的部分,这不正是我平常最反感的那类订阅吗(WTF)。所以…直接搜索一下解决方法吧。</p>
</div>
<div class="read-more">
<a href="/post/hugo-rss/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/hugo-utter/">Hugo 添加评论系统 utterances</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-05-09 </span>
<div class="post-category">
<a href="/categories/blog/"> blog </a>
</div>
<span class="more-meta"> 841 words </span>
<span class="more-meta"> 2 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
<h2 id="评论系统">评论系统</h2>
<p>虽然博客没有什么人看,但是还是要添加一下评论系统嘛,这样如果博客有什么问题被人指出的话,也很方便交流。</p>
<p>我使用的 hugo 主题是 even,功能非常齐全,界面也很好看。在配置文件中我们可以看到 even 主题支持的评论系统有:disqus,畅言,来必力,gitment,gitalk 等等。</p>
<p>我的选择标准是:</p>
<ol>
<li>最好是国外服务,因为国内服务通常来说稳定性不够(可能开到一半就跑路不支持了),所以畅言就被排除了</li>
<li>支持 markdown,所以 disqus 和 来必力 就被排除在外了</li>
</ol>
<p>因此最终的选择就是基于 Github 的评论系统,even 支持的有 gitment, gitalk</p>
</div>
<div class="read-more">
<a href="/post/hugo-utter/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/hugo-travis/">Hugo 博客使用 Travis CI 部署</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-05-07 </span>
<div class="post-category">
<a href="/categories/blog/"> blog </a>
</div>
<span class="more-meta"> 1343 words </span>
<span class="more-meta"> 3 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
<p>由于 Hugo 没有像 Hexo 或者 Jekyll 那样和 Github Pages 集成,所以每次都需要手动生成 <code>public</code> 文件夹然后再部署到 Github Pages 的仓库。为了减少这种重复劳动,我开始寻找可以自动部署的方案,查到有两种:</p>
<ol>
<li>写一个脚本,每次发布文章时可以手动运行脚本来生成静态文件并部署</li>
<li>使用 Travis CI 来进行自动部署</li>
</ol>
<p>由于没有使用过 Travis CI ,想要尝试一下,而且写脚本来完成手动工作看起来还是没有 Travis CI 那么优雅,最终我选择了 Travis CI 作为解决方案。</p>
</div>
<div class="read-more">
<a href="/post/hugo-travis/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/hugo/">Hugo 的安装与 Github Pages 部署</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-05-06 </span>
<div class="post-category">
<a href="/categories/blog/"> blog </a>
</div>
<span class="more-meta"> 1085 words </span>
<span class="more-meta"> 3 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
<h2 id="hugo-的安装和使用">Hugo 的安装和使用</h2>
<h3 id="安装">安装</h3>
<p>首先安装 Hugo</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code class="language-shell" data-lang="shell"><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-shell" data-lang="shell">brew install hugo</code></pre></td></tr></table>
</div>
</div>
<p>然后用 Hugo 创建一个新的网页文件夹。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code class="language-shell" data-lang="shell"><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-shell" data-lang="shell">hugo new site mysite</code></pre></td></tr></table>
</div>
</div>
</div>
<div class="read-more">
<a href="/post/hugo/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
</section>
<nav class="pagination">
</nav>
</div>
</div>
</main>
<footer id="footer" class="footer">
<div class="social-links">
<a href="https://github.com/rileyNG" class="iconfont icon-github" title="github"></a>
<a href="https://rileyng.github.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
<span class="power-by">
Powered by <a class="hexo-link" href="https://gohugo.io">Hugo</a>
</span>
<span class="division">|</span>
<span class="theme-info">
Theme -
<a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
</span>
<div class="busuanzi-footer">
<span id="busuanzi_container_site_pv"> site pv: <span id="busuanzi_value_site_pv"><img src="/img/spinner.svg" alt="spinner.svg"/></span> </span>
<span class="division">|</span>
<span id="busuanzi_container_site_uv"> site uv: <span id="busuanzi_value_site_uv"><img src="/img/spinner.svg" alt="spinner.svg"/></span> </span>
</div>
<span class="copyright-year">
©
2019
<span class="heart">
<i class="iconfont icon-heart"></i>
</span>
<span class="author">Riley</span>
</span>
</div>
</footer>
<div class="back-to-top" id="back-to-top">
<i class="iconfont icon-up"></i>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>
<script type="text/javascript" src="/dist/even.26188efa.min.js"></script>
<script type="text/javascript">
window.MathJax = {
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
showProcessingMessages: false,
messageStyle: 'none'
};
</script>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
</body>
</html>