-
Notifications
You must be signed in to change notification settings - Fork 0
/
rss.xml
294 lines (150 loc) · 107 KB
/
rss.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
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
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>檐牙の小窝</title>
<link>https://www.zxma.top/</link>
<author>
<name>檐牙</name>
</author>
<image>
<url>https://www.zxma.top/img/favicon.png</url>
<title>檐牙の小窝</title>
<link>https://www.zxma.top/</link>
</image>
<atom:link href="https://www.zxma.top/rss.xml" rel="self" type="application/rss+xml"/>
<description><div style="line-height:1.38;margin:.6rem 0;text-align:justify;color:rgba(255,255,255,.8)"><p>欢迎光临檐牙的小窝</p>博主的梦想是当一名<b style="color:#fff">画师<br><p></b>这里主要记录一下折腾网站的<b style="color:#fff">笔记</b>和<b style="color:#fff">生活日常</b></p></div></description>
<pubDate>Tue, 27 Feb 2024 01:50:04 GMT</pubDate>
<lastBuildDate>Tue, 27 Feb 2024 01:50:04 GMT</lastBuildDate>
<generator>檐牙の小窝</generator>
<copyright>2020 - 2021 檐牙 All rights reserved.</copyright>
<item>
<title>让1panel的OpenResty显示CDN和访客的IP</title>
<link>https://www.zxma.top/posts/514166a2/</link>
<guid>https://www.zxma.top/posts/514166a2/</guid>
<pubDate>Tue, 27 Feb 2024 01:50:04 GMT</pubDate>
<description>记录一下可以让OpenResty显示CDN的IP和访客的真实IP</description>
<content:encoded><![CDATA[<div class="note info flat"><p>写的比较仓促,有什么不足的地方,还请大家多多指点。评论区欢迎留言~<br>这个方法可以让OpenResty同时显示<code>两种</code>IP<br>适用于套了CDN,既想知道CDN节点IP,又想知道访客IP的客官们</p><div class='checkbox minus red checked'><input type="checkbox" checked="checked"/> <p>减号为需要删除的代码</p> </div><div class='checkbox plus green checked'><input type="checkbox" checked="checked"/> <p>加号为需要增加的代码</p> </div></div><h1 id="进入配置页面"><a href="#进入配置页面" class="headerlink" title="进入配置页面"></a>进入配置页面</h1><ol><li>点击<code>1panel</code>左侧列表中的<wavy>网站</wavy> </li><li>点击绿色<code>OpenResty</code>右侧的<wavy>设置</wavy>按钮</li><li>点击<wavy>配置修改</wavy>,进入配置页面<br><img src="https://bu.dusays.com/2024/02/27/65dd4a6110874.png" alt=""></li></ol><h1 id="修改配置"><a href="#修改配置" class="headerlink" title="修改配置"></a>修改配置</h1><p>参考以下代码块示例</p><div class='checkbox minus red checked'><input type="checkbox" checked="checked"/> <p>减号为需要删除的代码</p> </div><div class='checkbox plus green checked'><input type="checkbox" checked="checked"/> <p>加号为需要增加的代码</p> </div><figure class="highlight diff"><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><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line">user root;</span><br><span class="line">worker_processes auto;</span><br><span class="line">error_log /var/log/nginx/error.log notice;</span><br><span class="line">error_log /dev/stdout notice;</span><br><span class="line">pid /var/run/nginx.pid;</span><br><span class="line"></span><br><span class="line">events {</span><br><span class="line"> worker_connections 1024;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line">http {</span><br><span class="line"> include mime.types;</span><br><span class="line"> default_type application/octet-stream;</span><br><span class="line"><span class="deletion">- log_format main '$remote_addr - $remote_user [$time_local] "$request" '</span></span><br><span class="line"><span class="deletion">- '$status $body_bytes_sent "$http_referer" '</span></span><br><span class="line"><span class="deletion">- '"$http_user_agent" "$http_x_forwarded_for"';</span></span><br><span class="line"><span class="addition">+ log_format main 'CDN_IP:$remote_addr - CLIENT_IP:$HTTP_X_FORWARDED_FOR - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; </span></span><br><span class="line"> server_tokens off;</span><br><span class="line"> access_log /var/log/nginx/access.log main;</span><br><span class="line"> access_log /dev/stdout main;</span><br><span class="line"> sendfile on;</span><br></pre></td></tr></table></figure><p>下面是修改好的代码,不想看怎么改的客官们,<code>Crtl+A</code>全选,<code>Crtl+C</code>复制,<code>Crtl+V</code>黏贴,三连,应该就能用了<br><figure class="highlight diff"><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><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br></pre></td><td class="code"><pre><span class="line">user root;</span><br><span class="line">worker_processes auto;</span><br><span class="line">error_log /var/log/nginx/error.log notice;</span><br><span class="line">error_log /dev/stdout notice;</span><br><span class="line">pid /var/run/nginx.pid;</span><br><span class="line"></span><br><span class="line">events {</span><br><span class="line"> worker_connections 1024;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line">http {</span><br><span class="line"> include mime.types;</span><br><span class="line"> default_type application/octet-stream;</span><br><span class="line"> log_format main 'CDN_IP:$remote_addr - CLIENT_IP:$HTTP_X_FORWARDED_FOR - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; </span><br><span class="line"> server_tokens off;</span><br><span class="line"> access_log /var/log/nginx/access.log main;</span><br><span class="line"> access_log /dev/stdout main;</span><br><span class="line"> sendfile on;</span><br><span class="line"></span><br><span class="line"> server_names_hash_bucket_size 512;</span><br><span class="line"> client_header_buffer_size 32k;</span><br><span class="line"> client_max_body_size 50m;</span><br><span class="line"> keepalive_timeout 60;</span><br><span class="line"> keepalive_requests 100000;</span><br><span class="line"></span><br><span class="line"> gzip on;</span><br><span class="line"> gzip_min_length 1k;</span><br><span class="line"> gzip_buffers 4 16k;</span><br><span class="line"> gzip_http_version 1.1;</span><br><span class="line"> gzip_comp_level 2;</span><br><span class="line"> gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;</span><br><span class="line"> gzip_vary on;</span><br><span class="line"> gzip_proxied expired no-cache no-store private auth;</span><br><span class="line"> gzip_disable "MSIE [1-6]\.";</span><br><span class="line"></span><br><span class="line"> lua_code_cache on;</span><br><span class="line"> lua_shared_dict limit 10m;</span><br><span class="line"> lua_package_path "/www/common/waf/?.lua;/usr/local/openresty/lualib/?.lua;";</span><br><span class="line"> init_by_lua_file /www/common/waf/init.lua;</span><br><span class="line"></span><br><span class="line"> limit_conn_zone $binary_remote_addr zone=perip:10m;</span><br><span class="line"> limit_conn_zone $server_name zone=perserver:10m;</span><br><span class="line"></span><br><span class="line"> include /usr/local/openresty/nginx/conf/conf.d/*.conf;</span><br><span class="line">}</span><br></pre></td></tr></table></figure></p><h1 id="引入配置"><a href="#引入配置" class="headerlink" title="引入配置"></a>引入配置</h1><div class="note warning flat"><p>到此并没有结束,还需在网站的配置文件中的<strong>access_log</strong>项上追加一个<code>main</code></p></div><p>在你觉的需要的网站配置项上添加就可以了,并不需要在每个网站的配置项上都添加<br>如下图所示</p><ol><li>点击<code>1panel</code>左侧列表中的<wavy>网站</wavy></li><li>点击你的网站名称或者右侧的配置按钮,都是可以进入配置页面的</li><li>点击配置文件,在<strong>access_log</strong>处的后面,添加一个<strong>main</strong><br><img src="https://bu.dusays.com/2024/02/27/65dd5439e8adf.png" alt=""><br><img src="https://bu.dusays.com/2024/02/27/65dd640bd5a49.png" alt=""><br><img src="https://bu.dusays.com/2024/02/27/65dd63f403e0d.png" alt="增加mian"><br>代码块示例<figure class="highlight diff"><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></pre></td><td class="code"><pre><span class="line">server {</span><br><span class="line"> listen 80 ; </span><br><span class="line"> listen [::]:80 ; </span><br><span class="line"> server_name example.top; </span><br><span class="line"> index index.php index.html index.htm default.php default.htm default.html; </span><br><span class="line"> proxy_set_header Host $host; </span><br><span class="line"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; </span><br><span class="line"> proxy_set_header X-Forwarded-Host $server_name; </span><br><span class="line"> proxy_set_header X-Real-IP $remote_addr; </span><br><span class="line"> proxy_set_header Connection "upgrade"; </span><br><span class="line"><span class="deletion">- access_log /www/sites/example.top/log/access.log; </span></span><br><span class="line"><span class="addition">+ access_log /www/sites/example.top/log/access.log main; </span></span><br><span class="line"> error_log /www/sites/example.top/log/error.log; </span><br></pre></td></tr></table></figure></li></ol><h1 id="效果展示"><a href="#效果展示" class="headerlink" title="效果展示"></a>效果展示</h1><p>如图,<code>CDN_IP</code>为CDN节点IP , <code>CLIENT_IP</code>为访客真实IP<br><img src="https://bu.dusays.com/2024/02/27/65dd657a0399f.png" alt=""></p><h1 id="说明"><a href="#说明" class="headerlink" title="说明"></a>说明</h1><p>这个方法最初是在云雨论坛上看到的,原文放在下面了,博主本人是觉得挺好用的<br><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://forum.rainyun.com/t/topic/462"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">雨云宝塔虚拟主机获取访客真实IP</div> <div class="tag-link-sitename">雨云论坛</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></p>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E7%AC%94%E8%AE%B0/">笔记</category>
<category domain="https://www.zxma.top/tags/1panel/">1panel</category>
<category domain="https://www.zxma.top/tags/OpenResty/">OpenResty</category>
<comments>https://www.zxma.top/posts/514166a2/#post-comment</comments>
</item>
<item>
<title>Mirai机器人Linux部署记录</title>
<link>https://www.zxma.top/posts/66629b5b/</link>
<guid>https://www.zxma.top/posts/66629b5b/</guid>
<pubDate>Wed, 02 Aug 2023 08:08:23 GMT</pubDate>
<description>Mirai机器人的部署记录</description>
<content:encoded><![CDATA[<h2 id="介绍"><a href="#介绍" class="headerlink" title="介绍"></a>介绍</h2><div class="img-wrap"><div class="img-bg"><img class="img" src="https://bu.dusays.com/2023/08/02/64ca10a8b0e02.png" style="width:200px;"/></div></div><div class='checkbox green checked'><input type="radio" checked="checked"/> <p>Mirai 是一个在全平台下运行,提供 QQ Android 协议支持的高效率机器人库</p> </div><h2 id="引用声明"><a href="#引用声明" class="headerlink" title="引用声明"></a>引用声明</h2><span class='p center logo h2'>一切开发旨在学习,请勿用于非法用途</span><div class='checkbox green checked'><input type="radio" checked="checked"/> <p>mirai 是完全免费且开放源代码的软件,仅供学习和娱乐用途使用</p> </div><div class='checkbox green checked'><input type="radio" checked="checked"/> <p>mirai 不会通过任何方式强制收取费用,或对使用者提出物质条件</p> </div><div class='checkbox green checked'><input type="radio" checked="checked"/> <p>mirai 由整个开源社区维护,并不是属于某个个体的作品,所有贡献者都享有其作品的著作权。</p> </div><h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><div class="tip cogs"><ol><li>需要服务器,本篇用的是腾讯云上海区的2H2G服务器</li><li>本篇文章只是记录,不是教程,目前还不熟悉,不敢写教程,还请各位大佬指点</li><li>系统为Ubuntu 22.04.2 LTS</li><li>感谢<a href="https://github.com/dorrhound">Dorrhound</a>赞助的服务器</li></ol></div><h1 id="正文"><a href="#正文" class="headerlink" title="正文"></a>正文</h1><h2 id="更新依赖"><a href="#更新依赖" class="headerlink" title="更新依赖"></a>更新依赖</h2><p>这里使用的是<a href="http://www.hostbuf.com/">Finalshell</a>,个人觉得挺好用的<br>连上服务器后,更新依赖并创建文件夹<br><figure class="highlight bash"><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">apt-get update</span><br><span class="line"><span class="built_in">mkdir</span> mcl <span class="comment">#这里的mcl可以自行修改,是文件夹名称</span></span><br></pre></td></tr></table></figure></p><h2 id="下载MCL"><a href="#下载MCL" class="headerlink" title="下载MCL"></a>下载MCL</h2><div class='checkbox green checked'><input type="radio" checked="checked"/> <p><a href="https://mirai.mamoe.net/topic/177/mcl-%E6%A8%A1%E5%9D%97%E5%8C%96-%E8%BD%BB%E9%87%8F%E7%BA%A7%E4%B8%94%E6%94%AF%E6%8C%81%E5%AE%8C%E5%85%A8%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9A%84-mirai-%E5%8A%A0%E8%BD%BD%E5%99%A8?_=1690966310799">MCL</a>是模块化、轻量级且支持完全自定义的 mirai 加载器</p> </div><p>用MCL可以省去很多事情,适合新手</p><h3 id="以Linux为例"><a href="#以Linux为例" class="headerlink" title="以Linux为例"></a>以Linux为例</h3><p>这里使用的是最新版的MCL<br><figure class="highlight bash"><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 class="built_in">cd</span> mcl</span><br><span class="line">curl -LJO https://github.com/iTXTech/mcl-installer/releases/download/ae9f946/mcl-installer-ae9f946-linux-amd64-musl</span><br><span class="line"><span class="built_in">chmod</span> +x mcl-installer-ae9f946-linux-amd64-musl</span><br><span class="line">./mcl-installer-ae9f946-linux-amd64-musl</span><br></pre></td></tr></table></figure></p><h3 id="运行-Mcl-installer"><a href="#运行-Mcl-installer" class="headerlink" title="运行 Mcl-installer"></a>运行 Mcl-installer</h3><p>一般全部默认,然后等待安装完成即可<br><figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line">Would you like to install Java? (Y/N, default: Y)</span><br><span class="line">是否安装Java,如果上面的检测结果输出的Java版本大于11即可,可输入N跳过安装,否则必须安装Java</span><br><span class="line"></span><br><span class="line">Java version (11, 17, 18, default: 17): 选择Java版本安装,默认为Java 17</span><br><span class="line">JRE or JDK (1: JRE, 2: JDK, default: JRE): 选择JRE还是JDK安装,默认为JRE</span><br><span class="line">Binary Architecture (default: x64): 选择架构安装,默认x64,Apple Silicon 请选择 aarch64</span><br><span class="line">如果操作系统为Windows并且需要使用 mirai-native,请选择 x32(而不是i386等其他名字)</span><br><span class="line"></span><br><span class="line">The latest stable version of iTXTech MCL is x.x.x 获取最新MCL并询问是否下载</span><br><span class="line">Would you like to download it? (Y/N, default: Y) Y:下载,N:取消</span><br></pre></td></tr></table></figure></p><h2 id="运行Mcl"><a href="#运行Mcl" class="headerlink" title="运行Mcl"></a>运行Mcl</h2><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">./mcl</span><br></pre></td></tr></table></figure><p>输入指令后看到这样的一个界面就是成功了<br><figure class="highlight bash"><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><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">==================================[ Mirai consosle 2.14.0 ]===================================</span><br><span class="line"> __ __ __ __ ______ __</span><br><span class="line">| \ / \ \ | \/ \ | \</span><br><span class="line">| ▓▓\ / ▓▓\▓▓ ______ ______ \▓▓ ▓▓▓▓▓▓\ ______ _______ _______ ______ | ▓▓ ______</span><br><span class="line">| ▓▓▓\ / ▓▓▓ \/ \ | \| \ ▓▓ \▓▓/ \| \ / \/ \| ▓▓/ \</span><br><span class="line">| ▓▓▓▓\ ▓▓▓▓ ▓▓ ▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓ ▓▓ | ▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\ ▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ ▓▓▓▓▓▓\</span><br><span class="line">| ▓▓\▓▓ ▓▓ ▓▓ ▓▓ ▓▓ \▓▓/ ▓▓ ▓▓ ▓▓ __| ▓▓ | ▓▓ ▓▓ | ▓▓\▓▓ \| ▓▓ | ▓▓ ▓▓ ▓▓ ▓▓</span><br><span class="line">| ▓▓ \▓▓▓| ▓▓ ▓▓ ▓▓ | ▓▓▓▓▓▓▓ ▓▓ ▓▓__/ \ ▓▓__/ ▓▓ ▓▓ | ▓▓_\▓▓▓▓▓▓\ ▓▓__/ ▓▓ ▓▓ ▓▓▓▓▓▓▓▓</span><br><span class="line">| ▓▓ \▓ | ▓▓ ▓▓ ▓▓ \▓▓ ▓▓ ▓▓\▓▓ ▓▓\▓▓ ▓▓ ▓▓ | ▓▓ ▓▓\▓▓ ▓▓ ▓▓\▓▓ \</span><br><span class="line"> \▓▓ \▓▓\▓▓\▓▓ \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓\▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓▓▓▓▓▓</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">2023-08-02 17:14:50 I/main: Backend: version 2.14.0, built on 2023-02-06 14:25:21.</span><br><span class="line">2023-08-02 17:14:50 I/main: Frontend Terminal: version 2.14.0, provided by Mamoe Technologies</span><br><span class="line">2023-08-02 17:14:50 I/main: Welcome to visit https://mirai.mamoe.net/</span><br></pre></td></tr></table></figure></p><h2 id="部署签名服务"><a href="#部署签名服务" class="headerlink" title="部署签名服务"></a>部署签名服务</h2><p>由于QQ官方限制,需要配置第三方签名服务才能解决登陆和发消息的问题<br>具体请参照mirai官方论坛,按照cssxsh大佬的方法来,即可解除限制,但QQ号有冻结的风险</p><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://mirai.mamoe.net/topic/2386/fixprotocolversion-%E4%B8%B4%E6%97%B6%E6%80%A7%E5%8D%8F%E8%AE%AE%E4%BF%AE%E5%A4%8D%E6%8F%92%E4%BB%B6-code-45-code-235?_=1690967802568"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">FixProtocolVersion</div> <div class="tag-link-sitename">临时性协议修复插件</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://mirai.mamoe.net/topic/2365/unidbg-fetch-qsign-1-1-3-%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/22?_=1690967948520"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">unidbg-fetch-qsign1.1.3</div> <div class="tag-link-sitename">使用方法</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://github.com/cssxsh/fix-protocol-version/tree/v1.9.3"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">fix-protocol-version</div> <div class="tag-link-sitename">fix-protocol-version</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div><h2 id="Mirai相关链接"><a href="#Mirai相关链接" class="headerlink" title="Mirai相关链接"></a>Mirai相关链接</h2><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://bu.dusays.com/2023/08/02/64ca10a8b0e02.png"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">MiraiForum</div> <div class="tag-link-sitename"> https://mirai.mamoe.net/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div>]]></content:encoded>
<category domain="https://www.zxma.top/categories/QQ%E6%9C%BA%E5%99%A8%E4%BA%BA/">QQ机器人</category>
<category domain="https://www.zxma.top/categories/QQ%E6%9C%BA%E5%99%A8%E4%BA%BA/java/">java</category>
<category domain="https://www.zxma.top/tags/java/">java</category>
<category domain="https://www.zxma.top/tags/Mirai/">Mirai</category>
<category domain="https://www.zxma.top/tags/QQ%E6%9C%BA%E5%99%A8%E4%BA%BA/">QQ机器人</category>
<comments>https://www.zxma.top/posts/66629b5b/#post-comment</comments>
</item>
<item>
<title>多吉云CDN自动刷新方案</title>
<link>https://www.zxma.top/posts/9a06f4c1/</link>
<guid>https://www.zxma.top/posts/9a06f4c1/</guid>
<pubDate>Wed, 07 Jun 2023 03:10:16 GMT</pubDate>
<description>使用python脚本配合github让多吉云自动CDN刷新</description>
<content:encoded><![CDATA[<details class="folding-tag" green><summary> 点击查看更新记录 </summary> <div class='content'> <div class="timeline undefined"><div class='timeline-item headline'><div class='timeline-item-title'><div class='item-circle'><p>更新记录</p></div></div></div><div class='timeline-item'><div class='timeline-item-title'><div class='item-circle'><p>2024-6-7: 测试版CDN刷新方案1.0</p></div></div><div class='timeline-item-content'><p>依样画葫芦模仿空梦大佬书写更新脚本</p></div></div></div> </div> </details><div class="note blue info flat"><ol><li>目前本方案方法比较折中,且有点笨,还请各位大佬指点</li><li>由于目前不知道为什么,public无法输出.github文件夹,所以只能放在根目录</li><li>参考了空梦大佬的教程,<a href="https://kmar.top/posts/a427ed12/">https://kmar.top/posts/a427ed12/</a></li><li>感谢<a href="https://github.com/dorrhound">Dorrhound</a>的帮助</li></ol></div><h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><ol><li>思路是在博客根目录创建一个RefreshCDN.py为刷新脚本</li><li>使用github的action去运行这个刷新脚本</li><li>教程目前仅适用于多吉云,不过方法应该都适用</li><li>如果你使用的是别的 CDN,则需要自行查阅 API 文档,然后编写相应的代码</li></ol><h2 id="教程正文"><a href="#教程正文" class="headerlink" title="教程正文"></a>教程正文</h2><div class="tip warning"><ol><li>在开始前,需要客官您已完成HEXO自动部署,如果未完成,参考<a href="https://butterfly.zhheo.com/efficiency.html#%E6%8E%A8%E9%80%81">点我前往教程</a></li><li>部署的仓库为源码仓库,并为私人仓库,请勿设为公开!!!以免暴露key</li></ol></div><ol><li><p>在<code>[根目录]</code>创建一个文件名为<code>RefreshCDN.py</code></p><figure class="highlight python"><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><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">from</span> hashlib <span class="keyword">import</span> sha1</span><br><span class="line"><span class="keyword">import</span> hmac</span><br><span class="line"><span class="keyword">import</span> requests</span><br><span class="line"><span class="keyword">import</span> json</span><br><span class="line"><span class="keyword">import</span> urllib</span><br><span class="line"><span class="keyword">import</span> os</span><br><span class="line"></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">dogecloud_api</span>(<span class="params">api_path, data={}, json_mode=<span class="literal">False</span></span>):</span><br><span class="line"> <span class="string">"""</span></span><br><span class="line"><span class="string"> 调用多吉云API</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string"> :param api_path: 调用的 API 接口地址,包含 URL 请求参数 QueryString,例如:/console/vfetch/add.json?url=xxx&a=1&b=2</span></span><br><span class="line"><span class="string"> :param data: POST 的数据,字典,例如 {'a': 1, 'b': 2},传递此参数表示不是 GET 请求而是 POST 请求</span></span><br><span class="line"><span class="string"> :param json_mode: 数据 data 是否以 JSON 格式请求,默认为 false 则使用表单形式(a=1&b=2)</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string"> :type api_path: string</span></span><br><span class="line"><span class="string"> :type data: dict</span></span><br><span class="line"><span class="string"> :type json_mode bool</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string"> :return dict: 返回的数据</span></span><br><span class="line"><span class="string"> """</span></span><br><span class="line"></span><br><span class="line"> <span class="comment"># 这里替换为你的多吉云永久 AccessKey 和 SecretKey,可在用户中心 - 密钥管理中查看</span></span><br><span class="line"> <span class="comment"># 请勿在客户端暴露 AccessKey 和 SecretKey,否则恶意用户将获得账号完全控制权</span></span><br><span class="line"> access_key = <span class="string">'你的AccessKey'</span></span><br><span class="line"> secret_key = <span class="string">'你的SecretKey'</span></span><br><span class="line"></span><br><span class="line"> body = <span class="string">''</span></span><br><span class="line"> mime = <span class="string">''</span></span><br><span class="line"> <span class="keyword">if</span> json_mode:</span><br><span class="line"> body = json.dumps(data)</span><br><span class="line"> mime = <span class="string">'application/json'</span></span><br><span class="line"> <span class="keyword">else</span>:</span><br><span class="line"> body = urllib.parse.urlencode(data) <span class="comment"># Python 2 可以直接用 urllib.urlencode</span></span><br><span class="line"> mime = <span class="string">'application/x-www-form-urlencoded'</span></span><br><span class="line"> sign_str = api_path + <span class="string">"\n"</span> + body</span><br><span class="line"> signed_data = hmac.new(secret_key.encode(<span class="string">'utf-8'</span>), sign_str.encode(<span class="string">'utf-8'</span>), sha1)</span><br><span class="line"> sign = signed_data.digest().<span class="built_in">hex</span>()</span><br><span class="line"> authorization = <span class="string">'TOKEN '</span> + access_key + <span class="string">':'</span> + sign</span><br><span class="line"> response = requests.post(<span class="string">'https://api.dogecloud.com'</span> + api_path, data=body, headers = {</span><br><span class="line"> <span class="string">'Authorization'</span>: authorization,</span><br><span class="line"> <span class="string">'Content-Type'</span>: mime</span><br><span class="line"> })</span><br><span class="line"> <span class="keyword">return</span> response.json()</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">url_list = [</span><br><span class="line"> <span class="string">'https://xxxxx/'</span><span class="comment"># xxx替换为你的博客域名</span></span><br><span class="line">]</span><br><span class="line"></span><br><span class="line">api = dogecloud_api(<span class="string">'/cdn/refresh/add.json'</span>, {</span><br><span class="line"> <span class="string">'rtype'</span>: <span class="string">'path'</span>,</span><br><span class="line"> <span class="string">'urls'</span>: json.dumps(url_list)</span><br><span class="line">})</span><br><span class="line"><span class="keyword">if</span> api[<span class="string">'code'</span>] == <span class="number">200</span>:</span><br><span class="line"> <span class="built_in">print</span>(api[<span class="string">'data'</span>][<span class="string">'task_id'</span>])</span><br><span class="line"><span class="keyword">else</span>:</span><br><span class="line"> <span class="built_in">print</span>(<span class="string">"api failed: "</span> + api[<span class="string">'msg'</span>]) <span class="comment"># 失败</span></span><br><span class="line"></span><br></pre></td></tr></table></figure><p>将其中的<code>access_key = '你的AccessKey'</code>,<code>secret_key = '你的SecretKey'</code>,替换为自己的key<br><code>'https://xxxxx/'</code>xxxxx替换为你的博客域名</p></li><li><p>创建目录<code>[根目录]\.github\workflows</code>已经有的可以略过<br>在<code>workflows</code>下新建<code>RefreshCDN.yml</code></p><figure class="highlight yml"><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><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">name:</span> <span class="string">Refresh</span> <span class="string">CDN</span></span><br><span class="line"></span><br><span class="line"><span class="attr">on:</span></span><br><span class="line"> <span class="attr">push:</span></span><br><span class="line"> <span class="attr">branches:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">master</span></span><br><span class="line"></span><br><span class="line"><span class="attr">jobs:</span></span><br><span class="line"> <span class="attr">refresh-cdn:</span></span><br><span class="line"> <span class="attr">runs-on:</span> <span class="string">ubuntu-latest</span></span><br><span class="line"> <span class="attr">steps:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">安装</span> <span class="string">Node</span></span><br><span class="line"> <span class="attr">uses:</span> <span class="string">actions/checkout@v2</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">安装</span> <span class="string">python</span></span><br><span class="line"> <span class="attr">uses:</span> <span class="string">actions/setup-python@v2</span></span><br><span class="line"> <span class="attr">with:</span></span><br><span class="line"> <span class="attr">python-version:</span> <span class="string">'3.x'</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">安装依赖</span></span><br><span class="line"> <span class="attr">run:</span> <span class="string">pip</span> <span class="string">install</span> <span class="string">requests</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">等待源站部署</span></span><br><span class="line"> <span class="attr">run:</span> <span class="string">sleep</span> <span class="string">4m</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">name:</span> <span class="string">刷新CDN</span></span><br><span class="line"> <span class="attr">run:</span> <span class="string">python</span> <span class="string">RefreshCDN.py</span></span><br></pre></td></tr></table></figure><p>这里用了个笨办法,等待4分钟后进行刷新<br>创建完后直接提交上去应该就行了</p></li></ol>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E7%AC%94%E8%AE%B0/">笔记</category>
<category domain="https://www.zxma.top/categories/%E7%AC%94%E8%AE%B0/%E5%88%86%E4%BA%AB/">分享</category>
<category domain="https://www.zxma.top/tags/CDN/">CDN</category>
<category domain="https://www.zxma.top/tags/%E5%A4%9A%E5%90%89%E4%BA%91/">多吉云</category>
<category domain="https://www.zxma.top/tags/python/">python</category>
<comments>https://www.zxma.top/posts/9a06f4c1/#post-comment</comments>
</item>
<item>
<title>Butterfly主题引入Dplayer播放器,并适配pjax</title>
<link>https://www.zxma.top/posts/4c8787c6/</link>
<guid>https://www.zxma.top/posts/4c8787c6/</guid>
<pubDate>Tue, 06 Jun 2023 07:16:44 GMT</pubDate>
<description>Butterfly主题引入Dplayer播放器,并适配pjax</description>
<content:encoded><![CDATA[<details class="folding-tag" green><summary> 点击查看更新记录 </summary> <div class='content'> <div class="timeline undefined"><div class='timeline-item headline'><div class='timeline-item-title'><div class='item-circle'><p>更新记录</p></div></div></div><div class='timeline-item'><div class='timeline-item-title'><div class='item-circle'><p>2024-6-6: 适配方案01</p></div></div><div class='timeline-item-content'><p>依样画葫芦尝试pjax适配</p></div></div></div> </div> </details><div class="note blue info flat"><p>效果预览<br><img src="https://bu.dusays.com/2023/06/06/647edf5fab7c8.png" alt="1686036313532.png"></p></div><h1 id="魔改正文"><a href="#魔改正文" class="headerlink" title="魔改正文"></a>魔改正文</h1><div class="note warning flat"><p>本方案目前只是根据原有的Aplayer播放器适配进行依样画葫芦<br>如果有更好的方法,欢迎各位看官提出</p></div><details class="folding-tag" color open><summary> 点击查看魔改正文 </summary> <div class='content'> <ol><li><p>在博客根目录打开<code>CMD</code>,输入<code>npm</code>安装指令,安装Dplayer插件</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-tag-dplayer --save</span><br></pre></td></tr></table></figure></li><li><p>新建<code>[根目录]\themes\butterfly\layout\includes\third-party\dplayer.pug</code></p><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">script(src=url_for(theme.asset.dplayer_js))</span><br></pre></td></tr></table></figure></li><li><p>修改<code>[根目录]\themes\butterfly\layout\includes\additional-js.pug</code>在大约53行的位置</p><figure class="highlight diff"><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></pre></td><td class="code"><pre><span class="line"> if theme.aplayerInject && theme.aplayerInject.enable</span><br><span class="line"> if theme.pjax.enable || theme.aplayerInject.per_page</span><br><span class="line"> include ./third-party/aplayer.pug</span><br><span class="line"><span class="addition">+ include ./third-party/dplayer.pug</span></span><br><span class="line"> else if page.aplayer</span><br><span class="line"> include ./third-party/aplayer.pug</span><br><span class="line"><span class="addition">+ include ./third-party/dplayer.pug</span></span><br></pre></td></tr></table></figure></li><li><p>修改<code>[根目录]\themes\butterfly\layout\includes\third-party\pjax.pug</code>在大约41行下面的位置,依样画葫芦,添加适配代码</p><figure class="highlight diff"><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><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"> if (window.aplayers) {</span><br><span class="line"> for (let i = 0; i < window.aplayers.length; i++) {</span><br><span class="line"> if (!window.aplayers[i].options.fixed) {</span><br><span class="line"> window.aplayers[i].destroy()</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"><span class="addition">+ if (window.dplayers) {</span></span><br><span class="line"><span class="addition">+ for (let i = 0; i < window.dplayers.length; i++) {</span></span><br><span class="line"><span class="addition">+ if (!window.dplayers[i].options.fixed) {</span></span><br><span class="line"><span class="addition">+ window.dplayers[i].destroy()</span></span><br><span class="line"><span class="addition">+ }</span></span><br><span class="line"><span class="addition">+ }</span></span><br><span class="line"><span class="addition">+ }</span></span><br></pre></td></tr></table></figure></li><li><p>最后打开<code>[根目录]\_config.butterfly.yml</code>添加CDN配置项</p><figure class="highlight diff"><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"> option:</span><br><span class="line"> main_css: /css/index.css</span><br><span class="line"> main: /js/main.js</span><br><span class="line"> utils: /js/utils.js</span><br><span class="line"><span class="addition">+ #dplayer播放器</span></span><br><span class="line"><span class="addition">+ dplayer_js: https://npm.elemecdn.com/dplayer@1.26.0/dist/DPlayer.min.js</span></span><br></pre></td></tr></table></figure></li></ol> </div> </details><h1 id="使用方式"><a href="#使用方式" class="headerlink" title="使用方式"></a>使用方式</h1><p>详情见官方文档<br><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://bu.dusays.com/2023/06/06/647ef5bc9f72d.png"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">hexo-tag-dplayer</div> <div class="tag-link-sitename"> https://github.com/MoePlayer/hexo-tag-dplayer</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></p><ol><li><p>官方举例:</p><figure class="highlight plaintext"><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">{% dplayer "url=https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.mp4" "addition=https://dplayer.daoapp.io/bilibili?aid=4157142" "api=https://api.prprpr.me/dplayer/" "pic=https://moeplayer.b0.upaiyun.com/dplayer/hikarunara.jpg" "id=9E2E3368B56CDBB4" "loop=yes" "theme=#FADFA3" "autoplay=false" "token=tokendemo" %}</span><br><span class="line">{% dplayer 'url=some.mp4' "id=someid" "api=https://api.prprpr.me/dplayer/" "addition=/some.json" 'code=player.on("loadstart",function(){console.log("loadstart")})' "autoplay" %} </span><br></pre></td></tr></table></figure></li><li><p>本人使用的:</p><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/zxma-siteassets@1.0.21/img/siteicon/favicon.png"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">博客使用Dplayer播放器</div> <div class="tag-link-sitename"> /posts/28820/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></li></ol>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E7%AC%94%E8%AE%B0/">笔记</category>
<category domain="https://www.zxma.top/categories/%E7%AC%94%E8%AE%B0/%E5%88%86%E4%BA%AB/">分享</category>
<category domain="https://www.zxma.top/tags/%E8%A7%86%E9%A2%91/">视频</category>
<category domain="https://www.zxma.top/tags/Dplayer/">Dplayer</category>
<comments>https://www.zxma.top/posts/4c8787c6/#post-comment</comments>
</item>
<item>
<title>免费部署Alist目录列表程序(已失效)</title>
<link>https://www.zxma.top/posts/438365eb/</link>
<guid>https://www.zxma.top/posts/438365eb/</guid>
<pubDate>Sun, 30 Oct 2022 03:04:00 GMT</pubDate>
<description>记录一下自己的部署Alist目录列表程序的过程</description>
<content:encoded><![CDATA[<div class="note info flat"><p>写的比较仓促,有什么不足的地方,还请大家多多指点。评论区欢迎留言~</p></div><div class="note warning flat"><ol><li>2022/10/30新增下方的环境变量示例</li><li>感谢<a href="https://cuojue.org/">@WeiCN</a>在评论区的错误指正</li><li>错误指正后,v3版本也能正常部署使用了</li><li>2023/3/16恢复图片链接,原深海图床CDN因未知原因无法访问,已把仅剩的缩略图迁移至去不图床,图片可能会比较模糊</li></ol></div><h1 id="简介"><a href="#简介" class="headerlink" title="简介"></a>简介</h1><p>Alist是一款支持多种存储的目录文件列表程序,后端基于<code>gin</code>,前端使用<code>react</code></p><div class="gallery"> <div class="fj-gallery page_img_lazyload data" data-rowHeight="220" data-limit="10"> <span class="gallery-data">[{"url":"https://bu.dusays.com/2023/03/16/6413013a46fe1.png","alt":""},{"url":"https://bu.dusays.com/2023/03/16/6413010ad3013.png","alt":""}]</span> </div><button class="gallery-load-more" style="opacity:0"> <span>加载更多</span> <i class="anzhiyufont anzhiyu-icon-arrow-down"></i> </button></div><div class="btns rounded grid5"> <a class="button no-text-decoration" href='https://alist-doc.nn.ci/' title='查看文档'><i class='anzhiyufont anzhiyu-icon-book'></i>查看文档</a><a class="button no-text-decoration" href='https://github.com/Xhofe/alist' title='查看源码'><i class='anzhiyufont anzhiyu-icon-bolt'></i>查看源码</a> </div><hr><h1 id="部署前准备"><a href="#部署前准备" class="headerlink" title="部署前准备"></a>部署前准备</h1><div class="note primary flat"><ol><li>一个<svg class="icon" style="width:1.4em; height:1.4em" aria-hidden="true"><use xlink:href="#icon-GitHub"></use></svg>Github账号</li><li>Fork一份<a href="https://github.com/alist-org/alist-render">Alist-render</a>的仓库</li><li>一个render账号</li><li>一个数据库,可选<code>sqlite3</code>、<code>mysql</code>、<code>postgres</code></li></ol></div><hr><h2 id="render账号"><a href="#render账号" class="headerlink" title="render账号"></a>render账号</h2><p>点击进入<a href="https://render.com/">render</a>官网<br>点击右上角 <code>GET STARTED</code>,使用Github进行注册或登录<br>按照网页的提示完成注册后进入控制面板<br><div class="gallery"> <div class="fj-gallery page_img_lazyload data" data-rowHeight="220" data-limit="10"> <span class="gallery-data">[{"url":"https://bu.dusays.com/2023/03/16/641301642afa0.png","alt":""},{"url":"https://bu.dusays.com/2023/03/16/64130188a77c9.png","alt":""}]</span> </div><button class="gallery-load-more" style="opacity:0"> <span>加载更多</span> <i class="anzhiyufont anzhiyu-icon-arrow-down"></i> </button></div></p><h2 id="数据库"><a href="#数据库" class="headerlink" title="数据库"></a>数据库</h2><p>点击进入<a href="https://www.elephantsql.com/">elephantsql</a>官网<br>点击位于页面中央的<code>Get a managed database today</code>,选择海龟样子的<code>Free</code>计划<br>会进入登陆页面,可以使用Github进行授权登陆,然后信息随便填一下就行<br>进入控制面板后创建数据库,计划记得选择<code>Free</code><br>这样我们就获得了一个免费的<code>postgres</code>类型的数据库<br><div class="gallery"> <div class="fj-gallery page_img_lazyload data" data-rowHeight="220" data-limit="10"> <span class="gallery-data">[{"url":"https://bu.dusays.com/2023/03/16/641301d4e12ac.png","alt":""},{"url":"https://bu.dusays.com/2023/03/16/641301efa6837.png","alt":""},{"url":"https://bu.dusays.com/2023/03/16/641302067ba2a.png","alt":""},{"url":"https://bu.dusays.com/2023/03/16/64130228cfac7.png","alt":""}]</span> </div><button class="gallery-load-more" style="opacity:0"> <span>加载更多</span> <i class="anzhiyufont anzhiyu-icon-arrow-down"></i> </button></div><br><div class="note info flat"><p>数据库的信息最好记下来备用,等一会要填</p></div><br><div class="note warning flat"><p>截图中的数据库在文章发布后已被删除</p></div></p><hr><h1 id="部署Alist"><a href="#部署Alist" class="headerlink" title="部署Alist"></a>部署Alist</h1><h2 id="拉取仓库"><a href="#拉取仓库" class="headerlink" title="拉取仓库"></a>拉取仓库</h2><p>进入<a href="https://dashboard.render.com/">render</a>的控制台,点击<code>New+</code>,选择<code>Web Service</code><br><div class="gallery"> <div class="fj-gallery page_img_lazyload data" data-rowHeight="220" data-limit="10"> <span class="gallery-data">[{"url":"https://bu.dusays.com/2023/03/16/64130252835b9.png","alt":""},{"url":"https://bu.dusays.com/2023/03/16/64130276670f6.png","alt":""}]</span> </div><button class="gallery-load-more" style="opacity:0"> <span>加载更多</span> <i class="anzhiyufont anzhiyu-icon-arrow-down"></i> </button></div><br>选择刚刚Fork的<a href="https://github.com/alist-org/alist-render">Alist-render</a>的仓库<br>点击,进入部署页面,自己取个名字,然后先什么都不要动,往下拉,拉到最底下</p><h2 id="设置环境变量"><a href="#设置环境变量" class="headerlink" title="设置环境变量"></a>设置环境变量</h2><p>在左下角<code>Create Web Service</code>的按钮上边,有个<code>Advanced</code>按钮,点击<br>然后在点击<code>Add Environment Variable</code>开始添加环境变量<br>这边可以参考我之前在Alist社区的对话<br><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://github.com/alist-org/alist/discussions/931"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">koyeb怎么连接数据库</div> <div class="tag-link-sitename">github</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div><br><div class="gallery"> <div class="fj-gallery page_img_lazyload data" data-rowHeight="220" data-limit="10"> <span class="gallery-data">[{"url":"https://bu.dusays.com/2023/03/16/6413029066de4.png","alt":""}]</span> </div><button class="gallery-load-more" style="opacity:0"> <span>加载更多</span> <i class="anzhiyufont anzhiyu-icon-arrow-down"></i> </button></div><br>参考表格对应填写变量参数,只要把<code>DB_HOST</code>,<code>DB_NAME</code>,<code>DB_PASS</code>,<code>DB_USER</code>给改成自己的就可以了</p><div class="table-container"><table><thead><tr><th style="text-align:center">数据库对应</th><th style="text-align:center">变量参数</th><th style="text-align:center">示例参数</th></tr></thead><tbody><tr><td style="text-align:center">Server</td><td style="text-align:center">DB_HOST</td><td style="text-align:center">queenie.db.elephantsql.com</td></tr><tr><td style="text-align:center">User & Default database</td><td style="text-align:center">DB_NAME</td><td style="text-align:center">bkqgx</td></tr><tr><td style="text-align:center">Password</td><td style="text-align:center">DB_PASS</td><td style="text-align:center">5CqBjEVZWdaaad2333aadadadadN3Clo</td></tr><tr><td style="text-align:center"></td><td style="text-align:center">DB_PORT</td><td style="text-align:center">5432</td></tr><tr><td style="text-align:center"></td><td style="text-align:center">DB_SSL_MODE</td><td style="text-align:center">disable</td></tr><tr><td style="text-align:center"></td><td style="text-align:center">DB_TYPE</td><td style="text-align:center">postgres</td></tr><tr><td style="text-align:center">User & Default database</td><td style="text-align:center">DB_USER</td><td style="text-align:center">bkqgx</td></tr><tr><td style="text-align:center"></td><td style="text-align:center">PORT</td><td style="text-align:center">8080</td></tr></tbody></table></div><div class="note warning flat"><p>填完检查一下,一共8个变量,好了就可以点击<code>Create Web Service</code>开始部署了,大概1~2分钟可以看到成果</p></div><div class="note warning flat"><ol><li>2022/10/30新增下方的环境变量示例,供大家参考↓↓↓</li><li>感谢<a href="https://cuojue.org/">@WeiCN</a>在评论区的错误指正</li><li>错误指正后,v3版本也能正常部署使用了</li></ol></div><h2 id="环境变量示例"><a href="#环境变量示例" class="headerlink" title="环境变量示例"></a>环境变量示例</h2><div class="tabs" id="kanbanniang"><ul class="nav-tabs"><button type="button" class="tab " data-href="kanbanniang-1">参数示例</button><button type="button" class="tab " data-href="kanbanniang-2">文字示例</button><button type="button" class="tab active" data-href="kanbanniang-3">关于sslmode</button></ul><div class="tab-contents"><div class="tab-item-content" id="kanbanniang-1"><div class="table-container"><table><thead><tr><th style="text-align:center">变量参数</th><th style="text-align:center">示例参数</th></tr></thead><tbody><tr><td style="text-align:center">DB_HOST</td><td style="text-align:center">queenie.db.elephantsql.com</td></tr><tr><td style="text-align:center">DB_NAME</td><td style="text-align:center">bkqgx</td></tr><tr><td style="text-align:center">DB_PASS</td><td style="text-align:center">5CqBjEVZWdaaad2333aadadadadN3Clo</td></tr><tr><td style="text-align:center">DB_PORT</td><td style="text-align:center">5432</td></tr><tr><td style="text-align:center">DB_SSL_MODE</td><td style="text-align:center">disable</td></tr><tr><td style="text-align:center">DB_TYPE</td><td style="text-align:center">postgres</td></tr><tr><td style="text-align:center">DB_USER</td><td style="text-align:center">bkqgx</td></tr><tr><td style="text-align:center">PORT</td><td style="text-align:center">8080</td></tr></tbody></table></div></div><div class="tab-item-content" id="kanbanniang-2"><div class="table-container"><table><thead><tr><th style="text-align:center">变量参数</th><th style="text-align:center">示例参数</th></tr></thead><tbody><tr><td style="text-align:center">DB_HOST</td><td style="text-align:center">数据库地址</td></tr><tr><td style="text-align:center">DB_NAME</td><td style="text-align:center">数据库名字</td></tr><tr><td style="text-align:center">DB_PASS</td><td style="text-align:center">数据库密码</td></tr><tr><td style="text-align:center">DB_PORT</td><td style="text-align:center">数据库端口</td></tr><tr><td style="text-align:center">DB_SSL_MODE</td><td style="text-align:center">SSL模式</td></tr><tr><td style="text-align:center">DB_TYPE</td><td style="text-align:center">数据库类型</td></tr><tr><td style="text-align:center">DB_USER</td><td style="text-align:center">数据库用户名</td></tr><tr><td style="text-align:center">PORT</td><td style="text-align:center">端口</td></tr></tbody></table></div></div><div class="tab-item-content active" id="kanbanniang-3"><p>DB_SSL_MODE这个变量我也不是很清楚,有错误的可以评论区指正,根据官方文档来看</p><ol><li>sqlite3数据库:请忽略该参数</li><li>mysql数据库:参数有<code>true</code>, <code>false</code>, <code>skip-verify</code>, <code>preferred</code>,选一个填</li><li>postgres数据库:参数有<code>disable</code>,<code>allow</code>,<code>prefer</code>,<code>require</code>,<code>verify-full</code>,选一个填</li></ol><p>我用的postgres数据库填的是<code>disable</code>,就是没用SSL</p></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><h1 id="评论区疑难解答"><a href="#评论区疑难解答" class="headerlink" title="评论区疑难解答"></a>评论区疑难解答</h1><div class="tabs" id="zhangmi"><ul class="nav-tabs"><button type="button" class="tab active" data-href="zhangmi-1">账密未输出</button><button type="button" class="tab " data-href="zhangmi-2">保持唤醒</button></ul><div class="tab-contents"><div class="tab-item-content active" id="zhangmi-1"><p>如果你是已连接数据库了,那么你的密码应该已经写入数据库了,所以他不会再显示了,需要你自己去数据库看用户名和密码<br>如果你使用的是<a href="https://www.elephantsql.com/">elephantsql</a> 数据库<br>前往你自己的 <a href="https://www.elephantsql.com/">elephantsql</a> 数据库,点击侧边栏的 <code>Browser</code> 之后输入 <code>SELECT * FROM "public"."x_users" LIMIT 100</code><br>会有一行 <code>username</code> 名为 <code>admin</code> 的,后面就是密码,<code>admin</code> 就是用户名<br><img src="https://bu.dusays.com/2022/12/05/638dcf8bb852a.png" alt="1670238084349-87e699bc8702c63c9c8182ab8b1e1440.png"></p><p>或者点 <code>Table queries</code>,再点 <code>x_user</code> 也是可以的<br><img src="https://bu.dusays.com/2022/12/05/638dcfaa95816.png" alt="1670238119405-87e699bc8702c63c9c8182ab8b1e1440.png"></p></div><div class="tab-item-content" id="zhangmi-2"><p>由于render 15分钟没访问会休眠,所以我们可以注册一个<a href="https://uptimerobot.com/">uptimerobot</a>或<a href="https://www.checklyhq.com/">checklyhq</a>类似的这种监视网站,添加一个监控,24小时定时访问render上的项目,render就不会休眠了</p><div class="note info flat"><p>render原本的免费计划是每月允许总共使用750小时,似乎是不计流量的,就部署一个项目来说完全够用。但是render官方宣布定价将从 2023 年 1 月 1 日开始更改,从每月使用750小时,改为了每月免费带宽100GB的流量。</p></div></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><hr><h1 id="示例站点"><a href="#示例站点" class="headerlink" title="示例站点"></a>示例站点</h1><div class="site-card-group"><a class="site-card" href="https://alist.nn.ci/" data-title=官方演示Demo><div class="wrapper cover"><img class="cover fadeIn" src="https://bu.dusays.com/2023/03/16/6413010ad3013.png"/></div><div class="info"><img class="flink-avatar" src="https://bu.dusays.com/2023/03/16/641302b110384.png"/><span class="site-title">🗂️ Alist演示站</span></div></a><a class="site-card" href="https://pan.zxma.top" data-title=个人Alist站点><div class="wrapper cover"><img class="cover fadeIn" src="https://bu.dusays.com/2023/03/16/6413010ad3013.png"/></div><div class="info"><img class="flink-avatar" src="https://bu.dusays.com/2023/03/16/641302b110384.png"/><span class="site-title">檐牙的小云盘</span></div></a></div>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E7%AC%94%E8%AE%B0/">笔记</category>
<category domain="https://www.zxma.top/tags/Github/">Github</category>
<category domain="https://www.zxma.top/tags/%F0%9F%97%82%EF%B8%8FAlist/">🗂️Alist</category>
<comments>https://www.zxma.top/posts/438365eb/#post-comment</comments>
</item>
<item>
<title>Butterfly主题美化/魔改日记</title>
<link>https://www.zxma.top/posts/ac06cf7a/</link>
<guid>https://www.zxma.top/posts/ac06cf7a/</guid>
<pubDate>Mon, 25 Apr 2022 10:05:00 GMT</pubDate>
<description>记录一下自己的Butterfly主题美化/魔改</description>
<content:encoded><![CDATA[<div class="note warning flat"><ol><li>声明一下,博主这没啥前端基础,写的可能很烂,这边只是自己记录一下</li><li>这边的魔改都源自于别的大佬,链接放在最后了,大家有问题可以去看他们的</li><li>以下魔改可能涉及修改主题源码,大家做好备份</li><li>魔改后有出错可以百度,谷歌,必应,一般都能解决哈</li><li>以下内容可能会不间断更新,现版本为,框架<code>Hexo:5.4.0</code>主题<code>Butterfly:4.1.0</code></li></ol></div><h1 id="插件类魔改"><a href="#插件类魔改" class="headerlink" title="插件类魔改"></a>插件类魔改</h1><h2 id="添加看板娘"><a href="#添加看板娘" class="headerlink" title="添加看板娘"></a>添加看板娘</h2><div class="tabs" id="kanbanniang"><ul class="nav-tabs no-default"><button type="button" class="tab " data-href="kanbanniang-1">⚡快速引入</button><button type="button" class="tab " data-href="kanbanniang-2">🔗教程索引</button></ul><div class="tab-contents"><div class="tab-item-content" id="kanbanniang-1"><ol><li>在<code>Butterfly</code>的主题配置文件<code>_config.butterfly.yml</code>中引入<figure class="highlight yml"><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></pre></td><td class="code"><pre><span class="line"><span class="comment"># Inject</span></span><br><span class="line"><span class="comment"># Insert the code to head (before '</head>' tag) and the bottom (before '</body>' tag)</span></span><br><span class="line"><span class="comment"># 插入代码到头部 </head> 之前 和 底部 </body> 之前</span></span><br><span class="line"><span class="attr">inject:</span></span><br><span class="line"> <span class="attr">head:</span></span><br><span class="line"> <span class="comment"># - <link rel="stylesheet" href="/xxx.css"></span></span><br><span class="line"> <span class="attr">bottom:</span></span><br><span class="line"> <span class="comment"># - <script src="xxxx"></script></span></span><br><span class="line"><span class="string">+</span> <span class="bullet">-</span> <span class="string"><script</span> <span class="string">data-pjax</span> <span class="string">defer</span> <span class="string">src="https://npm.elemecdn.com/yanya-live2d-widget/autoload.js"></script></span></span><br></pre></td></tr></table></figure></li><li>保存文件修改,然后执行Hexo“三连”<figure class="highlight cmd"><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">hexo clean</span><br><span class="line">hexo g</span><br><span class="line">hexo s</span><br></pre></td></tr></table></figure>马上就可以在<code>localhost:4000</code>看到预览效果</li></ol></div><div class="tab-item-content" id="kanbanniang-2"><p>要详细了解的小伙伴这边走~QwQ💦Link start!!</p><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/akilar-candyassets/image/siteicon/favicon.ico"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">糖果屋看板娘教程贴</div> <div class="tag-link-sitename"> https://akilar.top/posts/5b8f515f/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><h2 id="添加外挂标签"><a href="#添加外挂标签" class="headerlink" title="添加外挂标签"></a>添加外挂标签</h2><div class="tabs" id="kanbanniang1"><ul class="nav-tabs no-default"><button type="button" class="tab " data-href="kanbanniang1-1">⚡快速引入</button><button type="button" class="tab " data-href="kanbanniang1-2">🔗教程索引</button></ul><div class="tab-contents"><div class="tab-item-content" id="kanbanniang1-1"><ol><li>在<mark class="hl-label red">博客</mark> 的<code>根目录</code>下执行<figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-butterfly-tag-plugins-plus --save</span><br></pre></td></tr></table></figure></li><li>具体配置方案请参看插件文档<br><a href="https://www.npmjs.com/package/hexo-butterfly-tag-plugins-plus">hexo-butterfly-tag-plugins-plus</a></li></ol></div><div class="tab-item-content" id="kanbanniang1-2"><p>依旧还是Akilar糖果屋店长~OvO💦Link start!!</p><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/akilar-candyassets/image/siteicon/favicon.ico"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">糖果屋Tag Plugins Plus贴</div> <div class="tag-link-sitename"> https://akilar.top/posts/615e2dec/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><h2 id="留言板动态弹出信封样式"><a href="#留言板动态弹出信封样式" class="headerlink" title="留言板动态弹出信封样式"></a>留言板动态弹出信封样式</h2><div class="tabs" id="kanbanniang2"><ul class="nav-tabs no-default"><button type="button" class="tab " data-href="kanbanniang2-1">⚡快速引入</button><button type="button" class="tab " data-href="kanbanniang2-2">🔗教程索引</button></ul><div class="tab-contents"><div class="tab-item-content" id="kanbanniang2-1"><ol><li>在<mark class="hl-label red">博客</mark> 的<code>根目录</code>下执行<figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-butterfly-envelope --save</span><br></pre></td></tr></table></figure></li><li>具体配置方案请参看插件文档<br><a href="https://www.npmjs.com/package/hexo-butterfly-envelope">hexo-butterfly-envelope</a></li></ol></div><div class="tab-item-content" id="kanbanniang2-2"><p>没错,还是Akilar糖果屋店长的教程~Link start!!</p><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/akilar-candyassets/image/siteicon/favicon.ico"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">信笺样式留言板</div> <div class="tag-link-sitename"> https://akilar.top/posts/e2d3c450/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><h2 id="页脚电子钟和Github徽标"><a href="#页脚电子钟和Github徽标" class="headerlink" title="页脚电子钟和Github徽标"></a>页脚电子钟和Github徽标</h2><div class="tabs" id="kanbanniang3"><ul class="nav-tabs no-default"><button type="button" class="tab " data-href="kanbanniang3-1">⚡快速引入</button><button type="button" class="tab " data-href="kanbanniang3-2">🔗教程索引</button></ul><div class="tab-contents"><div class="tab-item-content" id="kanbanniang3-1"><ol><li>在<mark class="hl-label red">博客</mark> 的<code>根目录</code>下执行<figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-butterfly-footer-beautify --save</span><br></pre></td></tr></table></figure></li><li>具体配置方案请参看插件文档<br><a href="https://www.npmjs.com/package/hexo-butterfly-footer-beautify">hexo-butterfly-footer-beautify</a></li></ol></div><div class="tab-item-content" id="kanbanniang3-2"><ol><li>页脚电子钟<div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/akilar-candyassets/image/siteicon/favicon.ico"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">Native JS Timer</div> <div class="tag-link-sitename"> https://akilar.top/posts/b941af/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></li><li>Github徽标<div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/akilar-candyassets/image/siteicon/favicon.ico"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">Add Github Badge</div> <div class="tag-link-sitename"> https://akilar.top/posts/e87ad7f8/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></li></ol></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><h2 id="侧边栏说说"><a href="#侧边栏说说" class="headerlink" title="侧边栏说说"></a>侧边栏说说</h2><div class="tabs" id="kanbanniang4"><ul class="nav-tabs no-default"><button type="button" class="tab " data-href="kanbanniang4-1">⚡快速引入</button><button type="button" class="tab " data-href="kanbanniang4-2">🔗教程索引</button></ul><div class="tab-contents"><div class="tab-item-content" id="kanbanniang4-1"><ol><li>在<mark class="hl-label red">博客</mark> 的<code>根目录</code>下执行<figure class="highlight cmd"><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"># 如果安装过原版artitalk,请先卸载</span><br><span class="line">npm uninstall hexo-butterfly-artitalk --save</span><br><span class="line">npm install hexo-butterfly-artitalk-pro --save</span><br></pre></td></tr></table></figure></li><li><p>具体配置方案请参看插件文档<br><a href="https://www.npmjs.com/package/hexo-butterfly-artitalk-pro">hexo-butterfly-artitalk-pro</a></p></li><li><p>首次使用需要完成<mark class="hl-label default">前置任务</mark> ,请前往<mark class="hl-label orange">🔗教程索引</mark> 查看</p></li></ol></div><div class="tab-item-content" id="kanbanniang4-2"><p>这边这边,配置过程可能会有点麻烦OwO💦</p><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/akilar-candyassets/image/siteicon/favicon.ico"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">Artitalk Pro</div> <div class="tag-link-sitename"> https://akilar.top/posts/f1004b1d/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><h2 id="时钟卡片"><a href="#时钟卡片" class="headerlink" title="时钟卡片"></a>时钟卡片</h2><div class="tabs" id="kanbanniang5"><ul class="nav-tabs no-default"><button type="button" class="tab " data-href="kanbanniang5-1">⚡快速引入</button><button type="button" class="tab " data-href="kanbanniang5-2">🔗教程索引</button></ul><div class="tab-contents"><div class="tab-item-content" id="kanbanniang5-1"><ol><li>在<mark class="hl-label red">博客</mark> 的<code>根目录</code>下执行<figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-butterfly-clock --save</span><br></pre></td></tr></table></figure></li><li>具体配置方案请参看插件文档<br><a href="https://www.npmjs.com/package/hexo-butterfly-clock">hexo-butterfly-clock</a></li></ol></div><div class="tab-item-content" id="kanbanniang5-2"><p>点击前往糖果屋~OuO</p><div calss='anzhiyu-tag-link'><a class="tag-Link" target="_blank" href="https://npm.elemecdn.com/akilar-candyassets/image/siteicon/favicon.ico"> <div class="tag-link-tips">引用站外地址</div> <div class="tag-link-bottom"> <div class="tag-link-left" style=""> <i class="anzhiyufont anzhiyu-icon-link" style=""></i> </div> <div class="tag-link-right"> <div class="tag-link-title">Sidebar Card Clock</div> <div class="tag-link-sitename"> https://akilar.top/posts/4e39cf4a/</div> </div> <i class="anzhiyufont anzhiyu-icon-angle-right"></i> </div> </a></div></div></div><div class="tab-to-top"><button type="button" aria-label="scroll to top"><i class="anzhiyufont anzhiyu-icon-arrow-up"></i></button></div></div><div class="note warning flat"><p>随缘更新ing</p></div><h1 id="魔改大佬们"><a href="#魔改大佬们" class="headerlink" title="魔改大佬们"></a>魔改大佬们</h1><div class="site-card-group"><a class="site-card" href="https://akilar.top/posts/f99b208/" data-title=欢迎光临糖果屋><div class="wrapper cover"><img class="cover fadeIn" src="https://npm.elemecdn.com/akilar-friends@latest/siteshot/akilar.top.jpg"/></div><div class="info"><img class="flink-avatar" src="https://npm.elemecdn.com/akilar-friends@latest/avatar/akilar.top.jpg"/><span class="site-title">Akilar</span></div></a><a class="site-card" href="/" data-title=博主正在书写中><div class="wrapper cover"><img class="cover fadeIn" src=""/></div><div class="info"><span class="site-title">敬请期待</span></div></a></div>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%F0%9F%A6%8BButterfly/">🦋Butterfly</category>
<category domain="https://www.zxma.top/tags/%F0%9F%93%81Hexo/">📁Hexo</category>
<category domain="https://www.zxma.top/tags/%F0%9F%A6%8BButterfly/">🦋Butterfly</category>
<comments>https://www.zxma.top/posts/ac06cf7a/#post-comment</comments>
</item>
<item>
<title>浪漫世界趣事01</title>
<link>https://www.zxma.top/posts/42bcf2a5/</link>
<guid>https://www.zxma.top/posts/42bcf2a5/</guid>
<pubDate>Fri, 15 Apr 2022 00:11:02 GMT</pubDate>
<description>关于黎明杀机的游玩趣事(摆烂篇)</description>
<content:encoded><![CDATA[<div class="note info flat"><p>封面来源<a href="https://www.pixiv.net/artworks/74859609">Pixiv</a>,<a href="https://www.pixiv.net/users/682137">作者エイリゾ</a></p></div><div class="note warning flat"><p>文章部分图片来源<a href="http://dbdicontoolbox.com/">Dead By Daylight Icon Toolbox</a>和<a href="https://space.bilibili.com/20495744">灵魂刺青x</a></p></div><hr><div class="tip "><p>担心有些人不知道这游戏,先简单引用一下百度百科,然后文章里会解释大部分东西</p></div><h1 id="游戏简介"><a href="#游戏简介" class="headerlink" title="游戏简介"></a>游戏简介</h1><p><a href="https://www.deadbydaylight.com/">《黎明杀机》</a> 是一款由<a href="https://www.bhvr.com/">Behavior Interactive</a>工作室开发,<a href="https://www.starbreeze.com/">Starbreeze Studios</a>公司发行的一款生存恐怖游戏,于2016年6月14日PC发行。<br>游戏扮演杀手的玩家视角为第一人称视角,拥有强大的能力,还可以使用特殊能力来追踪逃亡者。<br>而扮演逃亡者的四名玩家则是第三人称视角,可以更好地观察周遭环境。玩家必须在强大的压力下做出残酷而正确的决定。</p><h2 id="修理电机"><a href="#修理电机" class="headerlink" title="修理电机"></a>修理电机</h2><p>扮演逃生者的玩家需要一边躲避屠夫的追杀,一边修理这些电机。以开启逃生大门,获得胜利,一般每张地图上都存在4-7个的电机(主要取决于逃生者人数)。当修复(开局玩家人数+1)个电机时,地图上存在的2个逃生大门便可以打开。<img no-lazy class="inline" src="https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/dianji.png" style="height:50px;"/></p><h1 id="事情起因"><a href="#事情起因" class="headerlink" title="事情起因"></a>事情起因</h1><p>博主和三位同学一起玩黎明杀机的时候,突发奇想要整活。<br>所谓的整活就是我们扮演四位逃身者,开局不修机子,直接躲在草丛里摆烂。<br>看看屠夫要花多长时间发现我们四个。</p><h1 id="整活准备"><a href="#整活准备" class="headerlink" title="整活准备"></a>整活准备</h1><p>我们选择了游戏中最黑的角色,克劳黛特·莫莱,人称黑妹,这边放一下她的二创图。<br>为了让整活更加顺利,我们烧了一张米德维奇小学地图祭品。<br>《黎明杀机》中米德维奇小学是与寂静岭联动的一张地图,如下图。<br>米德维奇小学中间有一块空地,四周是草坪,以黑妹的模型颜色,蹲在四个角落的草丛里,一般根本看不见<br><div class="gallery"> <div class="fj-gallery page_img_lazyload data" data-rowHeight="220" data-limit="10"> <span class="gallery-data">[{"url":"https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/hm.png","alt":"克劳黛特·莫莱"},{"url":"https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/mwq01.png","alt":"米德维奇小学"},{"url":"https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/mwq02.png","alt":"米德维奇小学"},{"url":"https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/mwq03.png","alt":"米德维奇小学解析图"}]</span> </div><button class="gallery-load-more" style="opacity:0"> <span>加载更多</span> <i class="anzhiyufont anzhiyu-icon-arrow-down"></i> </button></div></p><h1 id="整活过程"><a href="#整活过程" class="headerlink" title="整活过程"></a>整活过程</h1><p>开局四个憨憨直接往小学中央狂奔,并各自找了地方,蹲在草里。蹲着不动的效果就像是隐身了一样,根本看不见。当然不能一直不动,官方应该是为了防止人类玩家蹲着不动,屠夫找不到的情况出现,人类在一段时间没有和东西交互后,头上会开始飞乌鸦,同时屠夫玩家会看到乌鸦提醒。所以我们每人带了道具和技能<mark class="hl-label purple">毛骨悚然</mark> 。<img no-lazy class="inline" src="https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/cat.png" style="height:60px;"/><mark class="hl-label purple">毛骨悚然</mark> 的作用是,屠夫距离你36米范围内并面对你的方向时,毛骨悚然图标会亮起来给你提示。当毛骨悚然不亮的时候,我们就开始和手中道具互动,毛骨悚然一但亮起来就立刻停止互动。就这样持续了6分钟左右</p><h1 id="整活结束"><a href="#整活结束" class="headerlink" title="整活结束"></a>整活结束</h1><p>我们四个憨憨蹲了6分钟,连屠夫影子都没看见,甚至没有碰到屠夫的<mark class="hl-label orange">恐惧范围</mark> ,<mark class="hl-label orange">恐惧范围</mark> 是杀机初始的游戏机制,其目的是向逃生者提示屠夫的接近,并引起他们的恐惧,让他们不断听到随着距离接近而加强的心跳声。我们就开始猜测屠夫是不是找不到我们气的挂机了。一位同学还十分肯定的说,刚刚他听到了屠夫的声音,肯定是<mark class="hl-label default">幽灵杀手</mark> 。<mark class="hl-label default">幽灵杀手</mark> 的能力可以让自己隐身,隐身时没有恐惧范围。于是我们安心下来继续整活,大概从开局开始算,过了快9分钟后,有位同学憋不住了,让我们继续蹲着,自己去看看屠夫在哪。同学上了二楼,结果发现屠夫不是<mark class="hl-label default">幽灵杀手</mark> ,而是<mark class="hl-label red">麦克尔·麦尔斯</mark> !!<mark class="hl-label red">麦克尔·麦尔斯</mark> 站在二楼的缺口旁,看着下面一动不动。于是就有了下面这幅名场面……<br><div class="img-wrap"><div class="img-bg"><img class="img" src="https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/01.jpg"/></div></div><br>图片经过处理,游戏内没有这么亮,下面放原图<br><div class="img-wrap"><div class="img-bg"><img class="img" src="https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/01y.jpg"/></div></div></p><h1 id="小丑竟是我们自己🤡"><a href="#小丑竟是我们自己🤡" class="headerlink" title="小丑竟是我们自己🤡"></a>小丑竟是我们自己🤡</h1><p>为什么这样说呢,来看下<mark class="hl-label red">麦克尔·麦尔斯</mark> 的能力就知道了<br><div class="gallery"> <div class="fj-gallery page_img_lazyload data" data-rowHeight="220" data-limit="10"> <span class="gallery-data">[{"url":"https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/mk.png","alt":"麦克尔·麦尔斯"},{"url":"https://npm.elemecdn.com/roofang-rs@1.0.9/post/42bcf2a5/02.jpg","alt":"米德维奇小学"}]</span> </div><button class="gallery-load-more" style="opacity:0"> <span>加载更多</span> <i class="anzhiyufont anzhiyu-icon-arrow-down"></i> </button></div><br><mark class="hl-label default">能力-恶魔附身</mark> :进行偷窥,不仅可以察觉逃生者的位置,更能从他们身上吸取恶意值提升阶段。初始为第一阶段,此时麦克没有恐惧范围,移动速度也较慢。第二阶段时恐惧范围(16m)与移动速度恢复正常。第三阶段时回复为正常恐惧范围(32m)翻越窗户的速度变快且所有逃生者得到危险状态(杀手攻击力双倍)。<br><mark class="hl-label red">麦克尔·麦尔斯</mark> 在进行窥视的时候,逃身者会有一个高亮描边,也就是说我们四个憨憨蹲的9分钟里,他就看着我们,在下边走来走去,看了九分钟,七分一度很尴尬。感觉麦叔玩家此时在说:“四个煞笔…”。<mark class="hl-label red">麦克尔·麦尔斯</mark> 在同学发现时,还处于一阶段,所以我们才全程没有听见恐惧范围</p><h1 id="结束"><a href="#结束" class="headerlink" title="结束"></a>结束</h1><p>笑拉了,之后<mark class="hl-label red">麦克尔·麦尔斯</mark> ,监督我们修完了所有机子,并目送我们出了大门QwQ</p>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E7%94%9F%E6%B4%BB/">生活</category>
<category domain="https://www.zxma.top/categories/%E7%94%9F%E6%B4%BB/%E5%88%86%E4%BA%AB/">分享</category>
<category domain="https://www.zxma.top/tags/%F0%9F%8E%AE%E6%B8%B8%E6%88%8F/">🎮游戏</category>
<category domain="https://www.zxma.top/tags/%F0%9F%93%94%E6%97%A5%E8%AE%B0/">📔日记</category>
<category domain="https://www.zxma.top/tags/%E2%9A%99%EF%B8%8F%E6%B5%AA%E6%BC%AB%E4%B8%96%E7%95%8C/">⚙️浪漫世界</category>
<comments>https://www.zxma.top/posts/42bcf2a5/#post-comment</comments>
</item>
<item>
<title>关于为什么要写博客</title>
<link>https://www.zxma.top/posts/a2e0e64a/</link>
<guid>https://www.zxma.top/posts/a2e0e64a/</guid>
<pubDate>Wed, 25 Aug 2021 16:48:25 GMT</pubDate>
<description>记录一下写博客的起因QwQ</description>
<content:encoded><![CDATA[<div class="tip "><p>博主刚开始写博客,写的不好的各位客官可以指出来,QwQ嘿嘿~</p></div><h1 id="一,为啥要写博客"><a href="#一,为啥要写博客" class="headerlink" title="一,为啥要写博客"></a>一,为啥要写博客</h1><h2 id="了解概念"><a href="#了解概念" class="headerlink" title="了解概念"></a>了解概念</h2><p>我记得第一次了解到博客这个概念是在<a href="https://www.bilibili.com/">哔哩哔哩</a> <svg class="icon" style="width:2em; height:2em" aria-hidden="true"><use xlink:href="#icon-bilibili1"></use></svg> ,当时还是初二。<a href="https://www.bilibili.com/video/BV1q4411672K">相关视频</a></p><p>第一次看到的时候就感觉特别有意思<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/14.gif" style="height:50px;"/>,于是就去跟着视频去做了一遍。我记得这位UP主还自己出钱,提供过免费的二级域名让我们去试着搭建,现在已经没有了。</p><h2 id="中途放弃"><a href="#中途放弃" class="headerlink" title="中途放弃"></a>中途放弃</h2><p>当时了解到的是,建一个博客必须需要服务器~,一台服务器就要好多钱,觉得门槛太高,<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/16.gif" style="height:50px;"/>就没继续往下探索。B站当时好像也没有任何教程,也有可能是我搜索的有问题?<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/2.gif" style="height:50px;"/></p><h1 id="发现新大陆"><a href="#发现新大陆" class="headerlink" title="发现新大陆"></a>发现新大陆</h1><p>有次我突然又回想到了博客这事,于是去B站搜索博客一关键词,了解到了<a href="https://hexo.io/">Hexo</a><svg class="icon" style="width:2em; height:2em" aria-hidden="true"><use xlink:href="#icon-hexo"></use></svg>,<a href="https://gridea.dev/">Gridea</a><img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/zxmacc/CDN@master/images/image.bbr7457u8ow.png" style="height:50px;"/>这种静态博客生成器,还有代码托管网站<a href="https://github.com/">Github</a><svg class="icon" style="width:2em; height:2em" aria-hidden="true"><use xlink:href="#icon-huaban88"></use></svg>。这让我又重新有了搭建博客的兴趣!<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/12.gif" style="height:50px;"/></p><h2 id="尝试"><a href="#尝试" class="headerlink" title="尝试"></a>尝试</h2><p>当时没有任何的代码基础,自己啥也不懂,一开始用的Hexo,全是网上搜教程,傻瓜式一步一步来,然后教程里没有讲到的,我写出来全是报错,红色的致命错误<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/7.gif" style="height:50px;"/>,当时也没去找大佬,自己就在错误中摸索吧~,非常的崩溃,整的我有一段时间不想弄了。<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/10.gif" style="height:50px;"/></p><h2 id="契机"><a href="#契机" class="headerlink" title="契机"></a>契机</h2><p>之后看到了Gridea这个生成器,并且Gridea的主题里,有一个搬运自Hexo的Next主题。因为Gridea有自己的UI界面,操作起来很方便,每次生成和上传几乎都是成功的。这里感谢Next主题的作者们,以及<a href="https://yeming.site/">Madara</a><img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/hsxyhao/hsxyhao.github.io@1.3.3/images/avatar.png" style="height:50px;"/>搬运的Next主题。之后开始正常使用博客后,我不满足于现状,感觉Gridea的扩展性太弱了,就开始一边用Gridea写博客<psw>虽然也没写多少,嘿嘿</psw>,一边探索Hexo这个扩展性极高的生成器。</p><h1 id="搭建过程"><a href="#搭建过程" class="headerlink" title="搭建过程"></a>搭建过程</h1><p>搭建过程除了网上搜教程,全靠自己摸索,没有问别的大佬,<del>有点社恐吧~2333</del>,有时折腾到凌晨3点多。终于在一个暑假过后,在Hexo上获得了突破,有了一个像样的博客 <img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/8.gif" style="height:50px;"/>。</p><h2 id="违背初衷"><a href="#违背初衷" class="headerlink" title="违背初衷"></a>违背初衷</h2><p>之后可以说是走火入魔了<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/10.gif" style="height:50px;"/>,初衷是想有个自己可以写东西的地方吧,我也挺喜欢画画的,也可以把自己的画放在博客上面。但是我开始折腾主题,想让自己的博客变的好看 <img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/15.gif" style="height:50px;"/></p><h1 id="Next主题"><a href="#Next主题" class="headerlink" title="Next主题"></a>Next主题</h1><div class="site-card-group"><a class="site-card" href="https://theme-next.js.org/" data-title=Next主题原作者><div class="wrapper cover"><img class="cover fadeIn" src="https://gcore.jsdelivr.net/gh/zxmacc/CDN@master/images/image.6892vcylvhs0.png"/></div><div class="info"><img class="flink-avatar" src="https://theme-next.js.org/images/logo.svg"/><span class="site-title">Next</span></div></a><a class="site-card" href="https://yeming.site/" data-title=Next主题搬运作者><div class="wrapper cover"><img class="cover fadeIn" src="https://gridea.dev//media/images/theme-images/theme-next.jpg"/></div><div class="info"><img class="flink-avatar" src="https://gcore.jsdelivr.net/gh/hsxyhao/hsxyhao.github.io@1.3.3/images/avatar.png"/><span class="site-title">Madara</span></div></a></div><h1 id="更换为Butterfly主题"><a href="#更换为Butterfly主题" class="headerlink" title="更换为Butterfly主题"></a>更换为Butterfly主题</h1><p>有次在CSDN上搜索推荐的Hexo主题,偶然间看到了<a href="https://butterfly.js.org/">Buttefly</a><svg class="icon" style="width:2em; height:2em" aria-hidden="true"><use xlink:href="#icon-Butterfly"></use></svg>主题,第一次看到时一脸惊讶:哇!怎么这么好看!加载速度也嗖嗖地,非常快!觉得 <img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/13.gif" style="height:50px;"/>这个主题不错。于是就变成了现在的这个样子。也感谢Butterfly作者做了这么棒的主题。</p><div class="site-card-group"><a class="site-card" href="https://theme-next.js.org/" data-title=Butterfly主题作者><div class="wrapper cover"><img class="cover fadeIn" src="https://gcore.jsdelivr.net/gh/zxmacc/CDN@master/images/image.1tlve9ii9go0.png"/></div><div class="info"><img class="flink-avatar" src="https://gcore.jsdelivr.net/gh/zxmacc/CDN@master/images/image.1h37a9sco9kw.png"/><span class="site-title">Butterfly</span></div></a></div><h2 id="魔改"><a href="#魔改" class="headerlink" title="魔改"></a>魔改</h2><p>然后这个主题的扩展性很强吧,就衍生出了一堆的魔改。我现在写这个文章时,用的就是自己已经魔改好的主题。这个魔改也很折腾人,但是也让我逐渐理解了这个Hexo,还有主题的一些机制吧~<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/14.gif" style="height:50px;"/></p><h1 id="结束"><a href="#结束" class="headerlink" title="结束"></a>结束</h1><p>总之就是这样啦,从初二开始探索到现在初中毕业吧。这个写博客的动力来源,一开始是因为我初一时,好像很浪费时间,总是浑浑噩噩的。我想通过这个来弥补吧~。现在的话就是一个兴趣吧,也挺好,写到这里时我还挺激动的~<img no-lazy class="inline" src="https://gcore.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/HONKAI3-Daily/5.gif" style="height:50px;"/></p><blockquote><p>写的有些匆忙,不合适的地方可以指出来哈OvO~</p></blockquote>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E7%94%9F%E6%B4%BB/">生活</category>
<category domain="https://www.zxma.top/tags/%E5%8D%9A%E5%AE%A2/">博客</category>
<category domain="https://www.zxma.top/tags/Hexo/">Hexo</category>
<comments>https://www.zxma.top/posts/a2e0e64a/#post-comment</comments>
</item>
<item>
<title>博客使用Dplayer播放器</title>
<link>https://www.zxma.top/posts/28820/</link>
<guid>https://www.zxma.top/posts/28820/</guid>
<pubDate>Wed, 27 Apr 2022 14:13:25 GMT</pubDate>
<description>测试一下Dplayer播放器,然后代码放下下面了,有需要的可以参考一下哈</description>
<content:encoded><![CDATA[<div class="note blue info flat"><p>方法来源于CSDN博客,适用于静态博客网站。首次访问可能无法加载,多刷新几次</p></div><div class="note orange default flat"><p>插件<a href="https://www.npmjs.com/package/hexo-tag-dplayer">hexo-tag-dplayer</a>,原<a href="http://dplayer.js.org/">Dplayer</a></p></div><h1 id="战-地-2-0-4-2"><a href="#战-地-2-0-4-2" class="headerlink" title="战 地 2 0 4 2"></a>战 地 2 0 4 2</h1><p><a href="https://www.bilibili.com/video/BV1oK4y1G7xT">视频来源</a>哔哩哔哩《战 地 2 0 4 2》<svg class="icon" style="width:1em; height:1em" aria-hidden="true"><use xlink:href="#icon-bilibili3"></use></svg><br>↓视频↓<br><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":"https://r.pan.zxma.top/zd01.mp4","pic":"https://fastly.jsdelivr.net/gh/zxmacc/CDN@master/images/xxx.2pyzvkfrbdu0.gif"},"danmaku":{"id":"312412","api":"https://dplayer.moerats.com/","token":"tokendemo"}});window.dplayers||(window.dplayers=[]);window.dplayers.push(player);})()</script><br><details class="folding-tag" green><summary> 查看代码 </summary> <div class='content'> <figure class="highlight markdown"><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></pre></td><td class="code"><pre><span class="line">{% dplayer </span><br><span class="line">"url=https://r.pan.zxma.top/zd01.mp4" </span><br><span class="line">"pic=https://cdn.jsdelivr.net/gh/zxmacc/CDN@master/images/xxx.2pyzvkfrbdu0.gif" </span><br><span class="line">"loop=yes" </span><br><span class="line">"theme=#FADFA3" </span><br><span class="line">"autoplay=false" </span><br><span class="line">"token=tokendemo" </span><br><span class="line">"api=https://dplayer.moerats.com/" </span><br><span class="line">"id=312412" %}</span><br></pre></td></tr></table></figure> </div> </details></p><h1 id="《明日方舟》EP-随意随意呀"><a href="#《明日方舟》EP-随意随意呀" class="headerlink" title="《明日方舟》EP - 随意随意呀"></a>《明日方舟》EP - 随意随意呀</h1><p><a href="https://www.bilibili.com/video/BV1Wm4y1f7NM">视频来源</a>哔哩哔哩《明日方舟》EP - 随意随意呀 <svg class="icon" style="width:1em; height:1em" aria-hidden="true"><use xlink:href="#icon-bilibili3"></use></svg><br>↓视频↓<br><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":"https://r.pan.zxma.top/%E3%80%8A%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F%E3%80%8BEP_-_%E9%9A%8F%E6%84%8F%E9%9A%8F%E6%84%8F%E5%91%80.%E3%80%8A%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F%E3%80%8BEP_-_%E9%9A%8F%E6%84%8F%E9%9A%8F%E6%84%8F%E5%91%80.496622859.mp4","pic":"https://fastly.jsdelivr.net/gh/zxmacc/CDN@master/images/xxx.2pyzvkfrbdu0.gif"}});window.dplayers||(window.dplayers=[]);window.dplayers.push(player);})()</script><br><details class="folding-tag" green><summary> 查看代码 </summary> <div class='content'> <figure class="highlight markdown"><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></pre></td><td class="code"><pre><span class="line">{% dplayer </span><br><span class="line">"url=https://r.pan.zxma.top/%E3%80%8A%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F%E3%80%8BEP<span class="emphasis">_-_</span>%E9%9A%8F%E6%84%8F%E9%9A%8F%E6%84%8F%E5%91%80.%E3%80%8A%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F%E3%80%8BEP<span class="emphasis">_-_</span>%E9%9A%8F%E6%84%8F%E9%9A%8F%E6%84%8F%E5%91%80.496622859.mp4" </span><br><span class="line">"pic=https://cdn.jsdelivr.net/gh/zxmacc/CDN@master/images/xxx.2pyzvkfrbdu0.gif" </span><br><span class="line">"loop=yes" </span><br><span class="line">"theme=#FADFA3" </span><br><span class="line">"autoplay=false" </span><br><span class="line">"token=tokendemo" </span><br><span class="line">"api=https://dplayer.moerats.com/" </span><br><span class="line">"id=3634442" %}</span><br></pre></td></tr></table></figure> </div> </details></p><p>之后呢,我又尝试了一些东西,最终效果在菜单栏,杂项分类里的番剧哈,各位可以康康,诶嘿。(没啥技术含量哈)<img no-lazy class="inline" src="https://cdn.jsdelivr.net/gh/2x-ercha/twikoo-magic@master/image/huaji/huaji20.jpg" style="height:40px;"/></p>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E7%AC%94%E8%AE%B0/">笔记</category>
<category domain="https://www.zxma.top/tags/%E8%A7%86%E9%A2%91/">视频</category>
<category domain="https://www.zxma.top/tags/Dplayer/">Dplayer</category>
<comments>https://www.zxma.top/posts/28820/#post-comment</comments>
</item>
<item>
<title>动画番剧推荐(来自深渊)</title>
<link>https://www.zxma.top/posts/4439/</link>
<guid>https://www.zxma.top/posts/4439/</guid>
<pubDate>Fri, 31 May 2024 00:58:56 GMT</pubDate>
<description>番剧推荐</description>
<content:encoded><![CDATA[<p>电视动画片《来自深渊》改编自土笔章人原作的同名漫画作品,由KINEMA CITRUS负责制作。于2016年12月21日宣布动画化。</p><h1 id="剧情简介"><a href="#剧情简介" class="headerlink" title="剧情简介"></a>剧情简介</h1><p>在每一个角落都被探索完毕的世界中,唯一残留的秘境——大洞穴“阿比斯”。不知道延续到何方,深不见底的巨大纵向洞穴,栖息着奇妙奇怪的生物们,沉眠着现在的人类无法制造的贵重遗物。“阿比斯”那充满了不可思议的姿态吸引了人们,并驱使人们展开冒险。如此,多次挑战大洞穴的冒险者们,陆续得到了“探窟家”的名号。<br>住在建造于深渊边缘的城镇“奥斯”的孤儿莉可,梦想着有朝一日成为母亲那样伟大的探窟家,并解开深渊的谜团。这样的某一天,莉可在探索深渊的途中,捡到了有着少年样貌的机器人…? (以上来源于百度百科)</p><h1 id="混剪视频(来源百度)"><a href="#混剪视频(来源百度)" class="headerlink" title="混剪视频(来源百度)"></a>混剪视频(来源百度)</h1><p>手机端直接点击链接观看<a href="https://cdn.jsdelivr.net/gh/zxmav/CND@2.4/images/%E6%9D%A5%E8%87%AA%E6%B7%B1%E6%B8%8A,%E4%B8%80%E6%97%A0%E6%89%80%E7%9F%A5.mp4">点击观看视频</a></p><video id="video" controls="" preload="none" width="630px" height="368px" poster="https://cdn.jsdelivr.net/gh/zxmav/CND@2.5/images/abyss.jpg"> <source id="mp4" src="https://cdn.jsdelivr.net/gh/zxmav/CND@2.4/images/%E6%9D%A5%E8%87%AA%E6%B7%B1%E6%B8%8A,%E4%B8%80%E6%97%A0%E6%89%80%E7%9F%A5.mp4" type="video/mp4"> </video>]]></content:encoded>
<category domain="https://www.zxma.top/categories/%E5%88%86%E4%BA%AB/">分享</category>
<category domain="https://www.zxma.top/tags/%E5%8A%A8%E7%94%BB/">动画</category>
<category domain="https://www.zxma.top/tags/%E8%A7%86%E9%A2%91/">视频</category>
<comments>https://www.zxma.top/posts/4439/#post-comment</comments>
</item>
</channel>
</rss>