-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.xml
179 lines (86 loc) · 35.9 KB
/
search.xml
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
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>viedo</title>
<link href="/2019/03/27/viedo/"/>
<url>/2019/03/27/viedo/</url>
<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><h1 id="测试文档"><a href="#测试文档" class="headerlink" title="测试文档"></a>测试文档</h1><hr><ol><li>this is my first test</li><li>一起来学习 markdown.</li><li>gogoggo </li></ol><a id="more"></a><h1 id="播放音乐"><a href="#播放音乐" class="headerlink" title="播放音乐"></a>播放音乐</h1><p><strong>hexo-tag-aplayer:<a href="https://github.com/grzhan/hexo-tag-aplayer" target="_blank" rel="noopener">https://github.com/grzhan/hexo-tag-aplayer</a>)</strong></p> <div id="aplayer-FhQomWBT" class="aplayer aplayer-tag-marker" style="margin-bottom: 20px;"> <pre class="aplayer-lrc-content"></pre> </div> <script> var ap = new APlayer({ element: document.getElementById("aplayer-FhQomWBT"), narrow: false, autoplay: true, showlrc: false, music: { title: "Caffeine", author: "Jeff Williams", url: "http://7xq131.com1.z0.glb.clouddn.com/Preparation.mp3", pic: "", lrc: "" } }); window.aplayers || (window.aplayers = []); window.aplayers.push(ap); </script> <div id="aplayer-QVHFLKrl" class="aplayer aplayer-tag-marker" style="margin-bottom: 20px;"> <pre class="aplayer-lrc-content"></pre> </div> <script> var ap = new APlayer({ element: document.getElementById("aplayer-QVHFLKrl"), narrow: false, autoplay: true, showlrc: false, music: { title: "她的睫毛", author: "周杰伦", url: "http://home.ustc.edu.cn/~mmmwhy/%d6%dc%bd%dc%c2%d7%20-%20%cb%fd%b5%c4%bd%de%c3%ab.mp3", pic: "", lrc: "" } }); window.aplayers || (window.aplayers = []); window.aplayers.push(ap); </script><iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="330" height="86" src="//music.163.com/outchain/player?type=2&id=420125990&auto=1&height=66"></iframe><script type="text/javascript" src="http://www.xiami.com/widget/player-single?uid=32329501&sid=1776238762&mode=js"></script><h1 id="播放视频"><a href="#播放视频" class="headerlink" title="播放视频"></a>播放视频</h1><p><strong>hexo-tag-dplayer: <a href="https://github.com/NextMoe/hexo-tag-dplayer" target="_blank" rel="noopener">https://github.com/NextMoe/hexo-tag-dplayer</a></strong></p><div id="dplayer0" class="dplayer hexo-tag-dplayer-mark" style="margin-bottom: 20px;"></div><script>(function(){var player = new DPlayer({"container":document.getElementById("dplayer0"),"theme":"#FADFA3","loop":true,"video":{"url":"http://devtest.qiniudn.com/若能绽放光芒.mp4","pic":"http://devtest.qiniudn.com/若能绽放光芒.png"},"danmaku":{"id":"9E2E3368B56CDBB4","api":"http://dplayer.daoapp.io","token":"tokendemo"}});window.dplayers||(window.dplayers=[]);window.dplayers.push(player);})()</script><embed src="http://player.youku.com/player.php/Type/Folder/Fid/27690810/Ob/1/sid/XMTY1MTI3NjMyNA==/v.swf" quality="high" width="480" height="400" align="middle" allowscriptaccess="always" allowfullscreen="true" mode="transparent" type="application/x-shockwave-flash"><div class="owl-media owl-video owl-ted"><iframe src="https://embed.ted.com/talks/lang/zh-cn/tony_robbins_asks_why_we_do_what_we_do" width="640" height="360" frameborder="0" scrolling="no" webkitallowfullscreen mozallowfullscreen allowfullscreenframeborder="0" allowfullscreen></iframe><iframe src="//player.bilibili.com/player.html?aid=19448254&cid=31715906&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe><video width="80%" height="200" src="hi.mp4" controls="controls"><br>The <code><video></code> tag is not supported by your browser.<br></video></div>]]></content>
<categories>
<category> 技术 </category>
</categories>
<tags>
<tag> hello </tag>
<tag> hexo </tag>
<tag> 公式 </tag>
</tags>
</entry>
<entry>
<title>测试</title>
<link href="/2019/03/20/0321/"/>
<url>/2019/03/20/0321/</url>
<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><h1 id="测试文档"><a href="#测试文档" class="headerlink" title="测试文档"></a>测试文档</h1><hr><p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p><a id="more"></a><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>]]></content>
<categories>
<category> 技术 </category>
</categories>
<tags>
<tag> hello </tag>
<tag> hexo </tag>
<tag> 公式 </tag>
</tags>
</entry>
<entry>
<title>测试</title>
<link href="/2019/03/20/0320/"/>
<url>/2019/03/20/0320/</url>
<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><h1 id="测试文档"><a href="#测试文档" class="headerlink" title="测试文档"></a>测试文档</h1><hr><ol><li>this is my first test</li><li>一起来学习 markdown.</li><li>gogoggo </li></ol><a id="more"></a><h1 id="播放音乐"><a href="#播放音乐" class="headerlink" title="播放音乐"></a>播放音乐</h1><p><strong>hexo-tag-aplayer:<a href="https://github.com/grzhan/hexo-tag-aplayer" target="_blank" rel="noopener">https://github.com/grzhan/hexo-tag-aplayer</a>)</strong></p> <div id="aplayer-typbKWeU" class="aplayer aplayer-tag-marker" style="margin-bottom: 20px;"> <pre class="aplayer-lrc-content"></pre> </div> <script> var ap = new APlayer({ element: document.getElementById("aplayer-typbKWeU"), narrow: false, autoplay: true, showlrc: false, music: { title: "Caffeine", author: "Jeff Williams", url: "http://7xq131.com1.z0.glb.clouddn.com/Preparation.mp3", pic: "", lrc: "" } }); window.aplayers || (window.aplayers = []); window.aplayers.push(ap); </script> <div id="aplayer-zouasjSX" class="aplayer aplayer-tag-marker" style="margin-bottom: 20px;"> <pre class="aplayer-lrc-content"></pre> </div> <script> var ap = new APlayer({ element: document.getElementById("aplayer-zouasjSX"), narrow: false, autoplay: true, showlrc: false, music: { title: "她的睫毛", author: "周杰伦", url: "http://home.ustc.edu.cn/~mmmwhy/%d6%dc%bd%dc%c2%d7%20-%20%cb%fd%b5%c4%bd%de%c3%ab.mp3", pic: "", lrc: "" } }); window.aplayers || (window.aplayers = []); window.aplayers.push(ap); </script><iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="330" height="86" src="//music.163.com/outchain/player?type=2&id=420125990&auto=1&height=66"></iframe><script type="text/javascript" src="http://www.xiami.com/widget/player-single?uid=32329501&sid=1776238762&mode=js"></script><h1 id="播放视频"><a href="#播放视频" class="headerlink" title="播放视频"></a>播放视频</h1><p><strong>hexo-tag-dplayer: <a href="https://github.com/NextMoe/hexo-tag-dplayer" target="_blank" rel="noopener">https://github.com/NextMoe/hexo-tag-dplayer</a></strong></p><div id="dplayer1" class="dplayer hexo-tag-dplayer-mark" style="margin-bottom: 20px;"></div><script>(function(){var player = new DPlayer({"container":document.getElementById("dplayer1"),"theme":"#FADFA3","loop":true,"video":{"url":"http://devtest.qiniudn.com/若能绽放光芒.mp4","pic":"http://devtest.qiniudn.com/若能绽放光芒.png"},"danmaku":{"id":"9E2E3368B56CDBB4","api":"http://dplayer.daoapp.io","token":"tokendemo"}});window.dplayers||(window.dplayers=[]);window.dplayers.push(player);})()</script><embed src="http://player.youku.com/player.php/Type/Folder/Fid/27690810/Ob/1/sid/XMTY1MTI3NjMyNA==/v.swf" quality="high" width="480" height="400" align="middle" allowscriptaccess="always" allowfullscreen="true" mode="transparent" type="application/x-shockwave-flash"><div class="owl-media owl-video owl-ted"><iframe src="https://embed.ted.com/talks/lang/zh-cn/tony_robbins_asks_why_we_do_what_we_do" width="640" height="360" frameborder="0" scrolling="no" webkitallowfullscreen mozallowfullscreen allowfullscreenframeborder="0" allowfullscreen></iframe><iframe src="//player.bilibili.com/player.html?aid=19448254&cid=31715906&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe><video width="100%" height="400" src="hi.mp4" controls="controls"><br>The <code><video></code> tag is not supported by your browser.<br></video></div>]]></content>
<categories>
<category> 技术 </category>
</categories>
<tags>
<tag> hello </tag>
<tag> hexo </tag>
<tag> 公式 </tag>
</tags>
</entry>
<entry>
<title>一个简洁轻量的 hexo 博客主题</title>
<link href="/2019/03/20/Hexo-Theme-AirCloud/"/>
<url>/2019/03/20/Hexo-Theme-AirCloud/</url>
<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><h6 id="本博客提供给腾讯课堂官方课程一线大厂-React-实践宝典做项目参考,作者即课程讲师之一。"><a href="#本博客提供给腾讯课堂官方课程一线大厂-React-实践宝典做项目参考,作者即课程讲师之一。" class="headerlink" title="本博客提供给腾讯课堂官方课程一线大厂 React 实践宝典做项目参考,作者即课程讲师之一。"></a>本博客提供给腾讯课堂官方课程<a href="https://ke.qq.com/next_detail/index.html?id=4" target="_blank" rel="noopener">一线大厂 React 实践宝典</a>做项目参考,作者即课程讲师之一。</h6><h2 id="Hexo-Theme-AirCloud-一个简洁轻量的-hexo-博客主题"><a href="#Hexo-Theme-AirCloud-一个简洁轻量的-hexo-博客主题" class="headerlink" title="Hexo-Theme-AirCloud: 一个简洁轻量的 hexo 博客主题"></a>Hexo-Theme-AirCloud: 一个简洁轻量的 hexo 博客主题</h2><blockquote><p><a href="./readme-en.md">English Document</a> | <a href="http://niexiaotao.cn/" target="_blank" rel="noopener">预览地址</a></p></blockquote><a id="more"></a><h2 id="功能简介"><a href="#功能简介" class="headerlink" title="功能简介"></a>功能简介</h2><p>Hexo-Theme-AirCloud 是一个简洁轻量的 hexo 博客主题,旨在将中心放在博文本身,因此:</p><ul><li>默认没有大范围的主题色块、图片铺排等,也不要求每片博文配图,一方面这并不是我们记录知识的重点,另外一方面可能程序员群体并没有足够的素材,容易造成主题纠纷。</li><li>建议通过不冗余的内容进行传达,比如默认没有博文摘要,因为不少开发者写博客的时候没有写博文摘要,如果从博客前一部分截取往往不能表达完整思想。</li></ul><p>另外,该主题主要实现的功能有:</p><ul><li>全局搜索功能,并对搜索内容进行高亮。</li><li>博客评论功能,目前接入 <a href="https://imsun.net/posts/gitment-introduction/" target="_blank" rel="noopener">gitment</a>,之后考虑接入多种可选。</li><li>文章详情页文章目录功能</li><li>访问量统计(总体UV、PV,单页PV)</li><li>语言切换能力,目前支持中文和英文</li></ul><h2 id="起步"><a href="#起步" class="headerlink" title="起步"></a>起步</h2><blockquote><p>我在”常见问题”中总结了该项目之前被提及的一些问题,如果你在使用过程中遇到了问题,可以在”常见问题”中寻找答案,如果没能解决,欢迎提<a href="https://github.com/aircloud/hexo-theme-aircloud/issues" target="_blank" rel="noopener">issue</a>,我会保证回复。</p></blockquote><p>注意,如果你不按照”功能适配”部分的内容进行操作,可能会导致相关提及的功能无法正常使用。</p><ul><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8" target="_blank" rel="noopener">基本使用</a></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E5%8A%9F%E8%83%BD%E9%80%82%E9%85%8D" target="_blank" rel="noopener">功能适配</a><ul><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD" target="_blank" rel="noopener">搜索功能</a></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E6%A0%87%E7%AD%BE%E9%A1%B5%E9%9D%A2--%E5%85%B3%E4%BA%8E%E9%A1%B5%E9%9D%A2" target="_blank" rel="noopener"><code>标签</code>页面 & <code>关于</code>页面</a></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E8%AF%84%E8%AE%BA%E5%8A%9F%E8%83%BD" target="_blank" rel="noopener">评论功能</a></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E6%A0%87%E7%AD%BE%E9%A1%B5%E9%9D%A2--%E5%85%B3%E4%BA%8E%E9%A1%B5%E9%9D%A2" target="_blank" rel="noopener">favicon 的配置</a></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E5%BA%95%E9%83%A8%E8%87%AA%E5%AE%9A%E4%B9%89" target="_blank" rel="noopener">底部自定义</a></li></ul></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E9%A6%96%E8%A1%8C%E7%BC%A9%E8%BF%9B" target="_blank" rel="noopener">高级自定义</a><ul><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E9%A6%96%E8%A1%8C%E7%BC%A9%E8%BF%9B" target="_blank" rel="noopener">首行缩进</a></li></ul></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98" target="_blank" rel="noopener">常见问题</a><ul><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E5%A6%82%E4%BD%95%E5%8F%96%E6%B6%88%E8%B5%9E%E8%B5%8F%E5%8A%9F%E8%83%BD" target="_blank" rel="noopener">如何取消赞赏功能?</a></li></ul></li><li><a href="https://github.com/aircloud/hexo-theme-aircloud#%E4%B8%80%E4%BA%9B%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9" target="_blank" rel="noopener">一些注意事项</a> </li></ul><h2 id="基本使用"><a href="#基本使用" class="headerlink" title="基本使用"></a>基本使用</h2><p><strong>建议:参考 <a href="https://github.com/aircloud/hexo-aircloud-blog" target="_blank" rel="noopener">DEMO</a> 进行配置,尤其是 _config.yml 部分,否则可能会造成功能缺失</strong></p><p>同其他博客主题使用方式相同,直接 clone 或者下载本项目,复制粘贴到 themes 文件夹下即可。</p><p>具体的 _config.yml 自定义配置,请参考<a href="https://github.com/aircloud/hexo-aircloud-blog" target="_blank" rel="noopener">DEMO</a>。</p><h2 id="功能适配"><a href="#功能适配" class="headerlink" title="功能适配"></a>功能适配</h2><h3 id="搜索功能"><a href="#搜索功能" class="headerlink" title="搜索功能"></a>搜索功能</h3><p>为了使用搜索功能,首先需要安装下列插件:</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm i hexo-generator-search --save</span><br></pre></td></tr></table></figure><p>然后在 _config.yml 中进行配置,可以参考如下配置:</p><figure class="highlight plain"><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">search:</span><br><span class="line"> path: search.json</span><br><span class="line"> field: post</span><br></pre></td></tr></table></figure><h3 id="标签页面-amp-关于页面"><a href="#标签页面-amp-关于页面" class="headerlink" title="标签页面 & 关于页面"></a><code>标签</code>页面 & <code>关于</code>页面</h3><p>如果是新项目,默认是没有<code>标签</code>页面和<code>关于</code>页面的,需要在<code>source</code>文件夹下建立<code>tags</code>文件夹和<code>about</code>文件夹。</p><blockquote><p>注:建议不要直接新建文件,而是采用 hexo 的 <code>hexo new page tags</code> 和 <code>hexo new page about</code> 的方式新建文件,这样可以被 hexo 索引到。</p></blockquote><p>其中<code>tags</code>文件夹中新建<code>index.md</code>并写入:</p><figure class="highlight plain"><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">---</span><br><span class="line">layout: "tags"</span><br><span class="line">title: "Tags"</span><br><span class="line">---</span><br></pre></td></tr></table></figure><p><code>about</code>文件夹下<code>index.md</code>为一篇支持 markdown 格式的文件,需要在开头添加:</p><figure class="highlight plain"><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><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">---</span><br><span class="line">layout: "about"</span><br><span class="line">title: "About"</span><br><span class="line">date: 2016-04-21 04:48:33</span><br><span class="line">comments: true</span><br><span class="line">---</span><br></pre></td></tr></table></figure><h3 id="评论功能"><a href="#评论功能" class="headerlink" title="评论功能"></a>评论功能</h3><p>目前,本博客支持以下评论功能:</p><ul><li><a href="https://imsun.net/posts/gitment-introduction/" target="_blank" rel="noopener">gitment</a>(gitment 经常会出现限频或者 404 等错误,其作者已关闭github认证转发服务)</li><li><a href="https://disqus.com" target="_blank" rel="noopener">disqus</a> </li><li><a href="https://www.livere.com" target="_blank" rel="noopener">LiveRe</a></li></ul><h4 id="gitment"><a href="#gitment" class="headerlink" title="gitment"></a>gitment</h4><p>建议先在<a href="https://imsun.net/posts/gitment-introduction/" target="_blank" rel="noopener">gitment</a>进行了解,然后参考<a href="https://github.com/aircloud/hexo-aircloud-blog" target="_blank" rel="noopener">DEMO</a>进行配置,其中一些相关项目如下:</p><figure class="highlight plain"><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><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">comment:</span><br><span class="line"> type: gitment</span><br><span class="line"> id: your-id-created-by-https://github.com/settings/applications/new</span><br><span class="line"> secret: your-secret-created-by-https://github.com/settings/applications/new</span><br><span class="line"> owner: aircloud</span><br><span class="line"> repo: hexo-aircloud-blog</span><br></pre></td></tr></table></figure><h4 id="disqus"><a href="#disqus" class="headerlink" title="disqus"></a>disqus</h4><p>disqus 是一个使用比较广泛的评论系统,我们需要先在<a href="https://disqus.com" target="_blank" rel="noopener">官方网站</a>注册一个账号。</p><p>登录后,点击首页的 GET STARTED 按钮,之后选择 I want to install Disqus on my site 选项,填写相关内容,值得注意的是,<code>Website Name</code> 需要全网唯一,而且,一般情况,假设你的 <code>Website Name</code> 填写的是 example,那么下文 <code>script</code> 字段就可以写 <code>'https://example.disqus.com/embed.js'</code>。</p><p>当然,你也可以在下一步 -> 选择 basic 免费套餐 -> 选择最后的 “I don’t see my platform listed, installed manually with universal code” -> 找到代码中的 <code>s.src = 'https://xxxx.disqus.com/embed.js';</code> , 从而找到 script 地址。(无需插入 disqus 给出的脚本,只需按照这里的说明配置即可)</p><p>之后,你需要在 <code>_config.yml</code> 中配置如下内容:</p><figure class="highlight plain"><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">comment:</span><br><span class="line"> type: disqus</span><br><span class="line"> script: 'https://example.disqus.com/embed.js'</span><br></pre></td></tr></table></figure><p>当然,你也可以配置<code>url</code> 和 <code>identifier</code>, 但是这个就属于高级内容了,对于我们一般的 hexo 博客网站来说必要性不大,如果你需要配置这些内容,可能你已经是一个高级玩家了,可以在 <code>themes/aircloud/layout/layout.ejs</code> 的相关代码的基础上进行改动。</p><blockquote><p>注意: 目前,直接嵌入 disqus 的代码可能会加载失败,你也可以考虑将相关代码放在自己的博客下引入:在 public 文件夹下新建文件放入代码,跟随发布即可(放入 source 文件夹下可能会由于 hexo 的处理变得有错误),并同时更改 <code>_config.yml</code> 中的配置。</p></blockquote><h4 id="LiveRe"><a href="#LiveRe" class="headerlink" title="LiveRe"></a>LiveRe</h4><p>LiveRe 是一款来自韩国的支持中文且没有被墙LiveRe评论插件,重点是使用无需翻墙。</p><p>该插件分为city和premium两个版本,其中city版是适合所有人使用的免费版本,有更高需求的可以考虑premium版本。</p><p>注册之后,选择 安装 -> 选 city版本,按提示操作进入到管理页面,系统会给出一段嵌入代码,找到其中的data-id和data-uid。</p><p>之后,你需要在<code>_config.yml</code>中配置如下内容</p><figure class="highlight plain"><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">comment:</span><br><span class="line"> type: livere</span><br><span class="line"> livere_id: 'city'</span><br><span class="line"> livere_uid:</span><br></pre></td></tr></table></figure><p><code>livere_id</code> 和 <code>livere_uid</code>就是注册后获得的 data-id和data-uid。</p><h3 id="favicon-的配置"><a href="#favicon-的配置" class="headerlink" title="favicon 的配置"></a>favicon 的配置</h3><p>项目的 favicon 默认在你的博客根目录的 <code>/source/img</code> 下面,在 <code>/source/img</code> 下面添加 favicon.ico 即可,不要添加在主题文件夹内。</p><h3 id="底部自定义"><a href="#底部自定义" class="headerlink" title="底部自定义"></a>底部自定义</h3><p>大家如果访问提供的预览链接,会发现我们的博客底部是提供一些内容的:一些社交平台的个人主页链接、友情链接、PV、UV 与 本模版链接。</p><p>一般情况下,大家无需改动底部的代码,直接在 <code>_config.yml</code> 中配置即可。</p><p>配置社交平台主页的样例代码:</p><figure class="highlight plain"><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><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"># SNS settings</span><br><span class="line"># 一些社交平台地址,支持以下几种:</span><br><span class="line">weibo_username: 3286578617</span><br><span class="line">zhihu_username: ai-er-lan-xue-da</span><br><span class="line">github_username: AirCloud</span><br><span class="line">twitter_username: iconie_alloy</span><br><span class="line">facebook_username: xiaotao.nie.5</span><br><span class="line">linkedin_username: 小涛-聂-80964aba</span><br></pre></td></tr></table></figure><p>如果不想包括某些社交平台,直接注释或删除相关代码即可(目前暂不支持在不改动模版代码的前提下新增社交平台)。</p><p>配置友情链接的样例代码:</p><figure class="highlight plain"><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><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"># Friends</span><br><span class="line"># 友情链接</span><br><span class="line">friends: [</span><br><span class="line"> {</span><br><span class="line"> title: "10000H",</span><br><span class="line"> href: "https://www.10000h.top"</span><br><span class="line"> },{</span><br><span class="line"> title: "Xiaotao's Page",</span><br><span class="line"> href: "https://niexiaotao.com"</span><br><span class="line"> },{</span><br><span class="line"> title: "It helps SEO",</span><br><span class="line"> href: "#"</span><br><span class="line"> }</span><br><span class="line">]</span><br></pre></td></tr></table></figure><p>最底部的 PV、UV 和模版地址,无需配置。</p><h2 id="高级自定义"><a href="#高级自定义" class="headerlink" title="高级自定义"></a>高级自定义</h2><h3 id="首行缩进"><a href="#首行缩进" class="headerlink" title="首行缩进"></a>首行缩进</h3><p>目前可以配置是否在博客页面带有首行缩进两个汉字的效果,默认是有首行缩进的效果的,但是也可以通过下面的配置代码进行关闭:</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">post_style:</span><br><span class="line"> indent: 0</span><br></pre></td></tr></table></figure><h2 id="常见问题"><a href="#常见问题" class="headerlink" title="常见问题"></a>常见问题</h2><h3 id="如何取消赞赏功能?"><a href="#如何取消赞赏功能?" class="headerlink" title="如何取消赞赏功能?"></a>如何取消赞赏功能?</h3><p>目前网站的赞赏功能做的比较鸡肋,缺乏一定的丰富度,如果你想取消这个功能,只需取消注释或者删除掉赞赏部分的相关配置即可:</p><figure class="highlight plain"><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">donate:</span><br><span class="line"> img: img/donate.jpg</span><br><span class="line"> content: 感谢鼓励</span><br></pre></td></tr></table></figure><p>另外,如果你对赞赏部分有用户体验较好并且通用型比较好的设计,也可以提 issue,我会考虑实现。</p><h2 id="一些注意事项"><a href="#一些注意事项" class="headerlink" title="一些注意事项"></a>一些注意事项</h2><p>由于一些hexo的历史遗留问题等,为了避免给用户在使用过程中带来太多麻烦(比如需要改动主题代码甚至hexo源码),建议用户使用过程中遵循一些规范:</p><ul><li>文章不要有跳级目录,比如一个<code>###</code>三级目录下是一个<code>#####</code>五级目录,然后又有一个<code>###</code>三级目录,这样有可能导致 hexo 解析出错,从而影响文章目录部分的展示。</li><li>文章的段落(p)都有默认的两个字符的首行缩进,虽然能识别 markdown 段落中的换行,但是无法对换行后的内容进行缩进,所以这里需要注意样式问题(如果需要多行缩进,建议使用多个段落或者做成列表)。</li></ul>]]></content>
<categories>
<category> 技术 </category>
</categories>
<tags>
<tag> hello </tag>
<tag> hexo </tag>
<tag> 公式 </tag>
</tags>
</entry>
<entry>
<title>您好,大叔</title>
<link href="/2019/03/07/hello-dsdtb/"/>
<url>/2019/03/07/hello-dsdtb/</url>
<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><h1 id="hello-dsdtb"><a href="#hello-dsdtb" class="headerlink" title="hello dsdtb"></a>hello dsdtb</h1><hr><ol><li>this is my first page.</li><li>一起来学习 markdown.</li><li>come on</li></ol><a id="more"></a><p>首先展示一下<strong><em>数学公式</em></strong></p><h1 id><a href="#" class="headerlink" title="#"></a>#</h1><h1 id="test"><a href="#test" class="headerlink" title="test"></a>test</h1><p><img src="http://latex.codecogs.com/gif.latex?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}"></p>]]></content>
<categories>
<category> 技术 </category>
</categories>
<tags>
<tag> hello </tag>
<tag> hexo </tag>
<tag> 公式 </tag>
</tags>
</entry>
<entry>
<title>hello world</title>
<link href="/2019/03/07/hello-world/"/>
<url>/2019/03/07/hello-world/</url>
<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><h1 id="测试文档"><a href="#测试文档" class="headerlink" title="测试文档"></a>测试文档</h1><hr><p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p><a id="more"></a><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>]]></content>
<categories>
<category> 生活 </category>
</categories>
<tags>
<tag> hello </tag>
<tag> hexo </tag>
</tags>
</entry>
</search>