-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
311 lines (267 loc) · 46.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"><title>luqizhi's old blog已迁移到luqizhi.us.kg已迁移到luqizhi.us.kg - We are the world</title><meta name="author" content="luqizhi"><meta name="copyright" content="luqizhi"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="luqizhi's old old blog">
<meta property="og:url" content="https://luqizhi.gq/index.html">
<meta property="og:site_name" content="luqizhi's old old blog 已转移到 luqizhi.us.kg">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://luqizhi.gq/png.png">
<meta property="article:author" content="luqizhi">
<meta property="article:tag" content="luqizhi's old blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://luqizhi.gq/png.png"><link rel="shortcut icon" href="/png.png"><link rel="canonical" href="https://luqizhi.gq/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/4.0.31/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: undefined,
translate: undefined,
noticeOutdate: undefined,
highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
runtime: '天',
date_suffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: {"limitCount":70,"languages":{"author":"作者: luqizhi","link":"链接: ","source":"来源: luqizhi's old blog已迁移到luqizhi.us.kg","info":"著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。"}},
lightbox: 'fancybox',
Snackbar: undefined,
source: {
justifiedGallery: {
js: 'https://cdnjs.cloudflare.com/ajax/libs/flickr-justified-gallery/2.1.2/fjGallery.min.js',
css: 'https://cdnjs.cloudflare.com/ajax/libs/flickr-justified-gallery/2.1.2/fjGallery.min.css'
}
},
isPhotoFigcaption: false,
islazyload: false,
isAnchor: false,
percent: {
toc: true,
rightside: true,
}
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: 'luqizhi\'s old blog',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2023-06-22 14:15:56'
}</script><noscript><style type="text/css">
#nav {
opacity: 1
}
.justified-gallery img {
opacity: 1
}
#recent-posts time,
#post-meta time {
display: inline !important
}
</style></noscript><script>(win=>{
win.saveToLocal = {
set: function setWithExpiry(key, value, ttl) {
if (ttl === 0) return
const now = new Date()
const expiryDay = ttl * 86400000
const item = {
value: value,
expiry: now.getTime() + expiryDay,
}
localStorage.setItem(key, JSON.stringify(item))
},
get: function getWithExpiry(key) {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = new Date()
if (now.getTime() > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = url => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
script.onerror = reject
script.onload = script.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
script.onload = script.onreadystatechange = null
resolve()
}
document.head.appendChild(script)
})
win.getCSS = url => new Promise((resolve, reject) => {
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = url
link.onload = () => resolve()
link.onerror = () => reject()
document.head.appendChild(link)
})
win.activateDarkMode = function () {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
}
}
win.activateLightMode = function () {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
const t = saveToLocal.get('theme')
const now = new Date()
const hour = now.getHours()
const isNight = hour <= 6 || hour >= 18
if (t === undefined) isNight ? activateDarkMode() : activateLightMode()
else if (t === 'light') activateLightMode()
else activateDarkMode()
const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
if (asideStatus === 'hide') {
document.documentElement.classList.add('hide-aside')
} else {
document.documentElement.classList.remove('hide-aside')
}
}
const detectApple = () => {
if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
})(window)</script><meta name="generator" content="Hexo 6.3.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/png.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">44</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">28</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" target="_blank" rel="noopener" href="//a.luqizhi.tk"><i class="fa-fw fas fa-compass"></i><span> 本站镜像</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('/ganyu.jpg')"><nav id="nav"><span id="old blog-info"><a href="/" title="luqizhi's old blog已迁移到luqizhi.us.kg"><img class="site-icon" src="/png.png"/><span class="site-name">luqizhi's old blog已迁移到luqizhi.us.kg</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" target="_blank" rel="noopener" href="//a.luqizhi.tk"><i class="fa-fw fas fa-compass"></i><span> 本站镜像</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">luqizhi's old blog已迁移到luqizhi.us.kg</h1><div id="site_social_icons"><a class="social-icon" href="https://github.com/luqizhi666" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:1708044815@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2023/05/27/arduino/" title="合宙air32 arduino usb to ttl">合宙air32 arduino usb to ttl</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-05-27T10:28:12.000Z" title="发表于 2023-05-27 18:28:12">2023-05-27</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-05-27T13:32:41.810Z" title="更新于 2023-05-27 21:32:41">2023-05-27</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/arduino/">arduino</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/%E5%90%88%E5%AE%99air32/">合宙air32</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/usb-to-ttl/">usb to ttl</a></span></div><div class="content">看到合宙商城有9.9的stm32代替品air32bluepill,久仰大名,就买了个回来,买了便宜的usbttl烧录器。结果官方文档只有小黑板,而且没有usbttl烧录器,害得我走了不少弯路。
接线
RX>a9
TX>a10
3.3v>3.3v
gnd>gnd
boot选择就是用跳线帽(或杜邦线把中间和两边0或1连接起来,反面有列表)
boot1>0
boot2>1
设置arduino首选项网址:https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json ,开梯子等待下载
下载STM32CubeProgrammer
右键打开文件所在位置复制路径,右键此电脑属性,高级设置,环境变量,PATH,复制黏贴
重启arduino,选择工具,开发板stm32f1,bluepill,serial(注意)
如图
成功!
</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2023/03/04/0-96-ST7735-tft-espi%E5%BA%93/" title="0.96 ST7735 tft espi库">0.96 ST7735 tft espi库</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-03-04T02:35:17.000Z" title="发表于 2023-03-04 10:35:17">2023-03-04</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-03-04T04:29:14.157Z" title="更新于 2023-03-04 12:29:14">2023-03-04</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/arduino/">arduino</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/arduino/">arduino</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/tft/">tft</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/0-96-tft/">0.96 tft</a></span></div><div class="content">\libraries\TFT_eSPI\User_Setup.h
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119 ...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2023/03/04/blinker%E7%A4%BA%E4%BE%8B/" title="esp32-c3 blinker示例">esp32-c3 blinker示例</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-03-04T02:05:43.000Z" title="发表于 2023-03-04 10:05:43">2023-03-04</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-03-04T02:23:44.887Z" title="更新于 2023-03-04 10:23:44">2023-03-04</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/esp32-c3/">esp32-c3</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/arduino/">arduino</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/esp32-c3/">esp32-c3</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/blinker/">blinker</a></span></div><div class="content">1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162#define BLINKER_WIFI#include <Blinker.h>char auth[] = "";char ssid[] = "";char pswd[] = "";// 新建组件对象BlinkerButton Button1("btn-abc");BlinkerNumber Number1("num-abc");BlinkerButton led2("btn-led2");int counter = 0;// 按下按键即会执行该函数void button1_callback(const String & state){ BLINKER_LOG("get button state: ...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2023/03/04/esp32-c3%E5%BC%80%E5%8F%91%E6%9D%BF%E4%BD%BF%E7%94%A8blinker%E8%B8%A9%E5%9D%91%E6%8C%87%E5%8D%97/" title="esp32-c3开发板使用blinker编译失败">esp32-c3开发板使用blinker编译失败</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-03-04T01:33:52.000Z" title="发表于 2023-03-04 09:33:52">2023-03-04</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-03-04T01:57:01.324Z" title="更新于 2023-03-04 09:57:01">2023-03-04</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/esp32-c3/">esp32-c3</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/arduino/">arduino</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/esp32-c3/">esp32-c3</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/blinker/">blinker</a></span></div><div class="content">很早就花13.9买了个esp32-c3开发板,没有串口的好像只要9.9,可谓十分划算,先看下报错
这是用旧版也就是我一直用的arduino ide的报错
后来升级成2.0后是这个报错
In file included from d:\Arduino\libraries\Blinker\src\modules\painlessMesh\painlessMesh.h:29,from d:\Arduino\libraries\Blinker\src\modules\painlessMesh\painlessMeshConnection.cpp:10:d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:In member function ‘void painlessmesh::wifi::Mesh::eventHandleInit()’:d:\Arduino\libraries\Blinker\src\modules\painlessMesh\arduino/wifi.hpp:2 ...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2023/01/19/hexo%E4%B8%BB%E9%A2%98-butterfly/" title="hexo主题-butterfly">hexo主题-butterfly</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-01-19T09:48:31.000Z" title="发表于 2023-01-19 17:48:31">2023-01-19</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-01-23T13:56:10.607Z" title="更新于 2023-01-23 21:56:10">2023-01-23</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/linuxdeploy%E6%90%AD%E5%BB%BAhexo/">linuxdeploy搭建hexo</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/butterfly/">butterfly</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/%E8%87%AA%E5%AE%9A%E4%B9%89/">自定义</a></span></div><div class="content">发现fluid主题不支持pjax,因此换一个功能相对全面的butterfly主题
教程官方文档十分详细Butterfly 安裝文檔(一) 快速開始 | Butterfly
不做重复
中文可以在右下角切换繁简
</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2023/01/12/hexo%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE5/" title="hexo插件配置5">hexo插件配置5</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-01-12T04:09:25.000Z" title="发表于 2023-01-12 12:09:25">2023-01-12</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-01-15T14:02:22.000Z" title="更新于 2023-01-15 22:02:22">2023-01-15</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/linuxdeploy%E6%90%AD%E5%BB%BAhexo/">linuxdeploy搭建hexo</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/sitemap/">sitemap</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/%E6%8F%92%E4%BB%B6/">插件</a></span></div><div class="content">前情提要最近因为各种原因,在搞aplayer插件等,在windows装好nodejs,git后,发现如果把.sh脚本 改为bat脚本,不能直接使用,复制到命令行里面可以用[无语.jpg],到现在还没有解决。
hexo插件配置(5)sitemap12npm install hexo-generator-sitemap --savenpm install hexo-generator-baidu-sitemap --save
每次进行打包的时候,会自动在public文件夹下生成sitemap.xml和baidusitemap.xml
aplayer注意:特别要注意格式问题,如双引号单引号逗号等···被坑了很久(几天),如果复制发现不行建议检查这些内容
123456789101112131415161718192021222324252627custom_html: '<link rel="stylesheet" href="APlayer.min.css"><div id="aplayer"& ...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2023/01/11/hexo%E6%95%99%E7%A8%8B4/" title="hexo教程4">hexo教程4</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-01-11T06:16:23.000Z" title="发表于 2023-01-11 14:16:23">2023-01-11</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-01-12T06:40:48.000Z" title="更新于 2023-01-12 14:40:48">2023-01-12</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/linuxdeploy%E6%90%AD%E5%BB%BAhexo/">linuxdeploy搭建hexo</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/linuxdeploy/">linuxdeploy</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/github-page/">github page</a></span></div><div class="content">hexo上传到github(不用官方方法)首先,新建完仓库,创建github page(详见第一期)
首先cd到网站目录
1cd 1
然后
12hexo g #生成静态文件cd public #静态文件目录
然后链接github
123456git initgit add . git commit -m "更新"git branch -M maingit remote add origin git@github.com:luqizhi666/old blog.git #自己改对应仓库git push -u origin main -f #强制
注:第一次需要写好自己用户名密码
随后查看你的仓库若出现内容,恭喜你,成功了!
因为不方便,我写了一个脚本
1.sh1234567cd ~/1hexo gcd publicgit add .git commit -m "auto"git push git@github.com:luqizhi666/luqizhi666.github.io.git -fgit push git@github.com:luqiz ...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2022/12/16/hexo-Linuxdeply%E6%95%99%E7%A8%8B3/" title="hexo,Linuxdeply教程3">hexo,Linuxdeply教程3</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-12-15T23:55:49.000Z" title="发表于 2022-12-16 07:55:49">2022-12-16</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-01-12T06:49:06.000Z" title="更新于 2023-01-12 14:49:06">2023-01-12</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/linuxdeploy%E6%90%AD%E5%BB%BAhexo/">linuxdeploy搭建hexo</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/linuxdeploy/">linuxdeploy</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Fluid/">Fluid</a></span></div><div class="content">照上文安装完必要的应用后,便可以继续了
主题与配置(本网站现采用Fluid主题)
Hexo 配置123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106## Hexo Configuration## Docs: https://hexo.io/docs/configuration.html## Source: https://github.com/hexojs/hexo/# Sitetitle: luqizhi's old blogsubtitle: "luqizhi's old blog"description: "luqizhi's old blog"keywords: &quo ...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2022/12/11/%E6%97%A7%E6%89%8B%E6%9C%BAlinuxdeploy%EF%BC%8C2-%E5%AE%89%E8%A3%85%E7%AF%87/" title="旧手机linuxdeploy,2.安装篇">旧手机linuxdeploy,2.安装篇</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-12-11T08:23:06.000Z" title="发表于 2022-12-11 16:23:06">2022-12-11</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-01-12T06:41:06.000Z" title="更新于 2023-01-12 14:41:06">2023-01-12</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/linuxdeploy%E6%90%AD%E5%BB%BAhexo/">linuxdeploy搭建hexo</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/WordPress/">WordPress</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/githubpages/">githubpages</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/%E6%97%A7%E6%89%8B%E6%9C%BA/">旧手机</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/linuxdeploy/">linuxdeploy</a></span></div><div class="content">参考:https://old blog.csdn.net/lh155136/article/details/111194424,
安装篇基础环境
git
vim
npm(nodejs)
wget
apt install git vim wget 使用apt直接安装这些应用,没有大问题
nodejs因为对nodejs的版本有要求,而apt的所有包都找不到更新的,因此只能去官网下载(注意下载12左右的,否则会报错,被坑了好几回)(需要好一点的网络,下载工具)
https://nodejs.org/dist/v12.9.1
找到了镜像仓库∶https://registry.npmmirror.com/binary.html?path=node/v12.9.1
选择自己的架构如
https://nodejs.org/dist/v12.9.1/node-v12.9.1-linux-arm64.tar.gz
https://registry.npmmirror.com/-/binary/node/v12.9.1/node-v12.9.1-linux-arm64.tar.gz
wget 链接 wg ...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2022/12/11/linuxdeploy/" title="linuxdeploy">linuxdeploy</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-12-10T17:53:54.000Z" title="发表于 2022-12-11 01:53:54">2022-12-11</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-01-12T06:40:40.000Z" title="更新于 2023-01-12 14:40:40">2023-01-12</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/">默认(2023)</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/linuxdeploy%E6%90%AD%E5%BB%BAhexo/">linuxdeploy搭建hexo</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/github-hexo-linuxdeploy-%E5%AE%89%E5%8D%93-markdown/">-github -hexo -linuxdeploy -安卓 -markdown</a></span></div><div class="content">前提准备篇wordpress导出首先安装WordPress官方导出插件导出一个xml文件保存好,待会要用
github
注册github账户,新建一个名为 用户名.github.io 的仓库
进入仓库,点击setting找到pages,启用。可以在下面的输入框输入自己的域名(需要cname解析到 用户名.github.io )如 luqizhi.tk → luqizhi666.github.io 等待解析生效 顺便一提,阿里云解析的时候看到一个dns解析生效查询,点进去可以看到各个地方的dns结果,ip,http和ping功能(我都不会(😭 反正挺好用的
回到主页找到绿色的按钮移上去复制一下下面的链接
旧手机linuxdeploy需要root,虽然可以用termux,以前按教学玩过,感觉不如它,在我的旧手机至少是这样,百度github下载一下,安装,配置,太复杂不想写了,百度,(其实都忘了差不多了反正我试了几个月ubuntu,最后发下debian镜像就可以,气得当场去世
(宝塔)自己安装了个,本来就是想用他的,可是手机带不起来,又耗几个月,后来因为连基本文件管理代码都记不住,就当 ...</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/page/2/#content-inner">2</a><span class="space">…</span><a class="page-number" href="/page/5/#content-inner">5</a><a class="extend next" rel="next" href="/page/2/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/png.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">luqizhi</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">44</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">28</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://space.bilibili.com/515625447"><i class="fab fa-bilibili"></i><span>关注我</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/luqizhi666" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:1708044815@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">加油</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/05/27/arduino/" title="合宙air32 arduino usb to ttl">合宙air32 arduino usb to ttl</a><time datetime="2023-05-27T10:28:12.000Z" title="发表于 2023-05-27 18:28:12">2023-05-27</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/04/0-96-ST7735-tft-espi%E5%BA%93/" title="0.96 ST7735 tft espi库">0.96 ST7735 tft espi库</a><time datetime="2023-03-04T02:35:17.000Z" title="发表于 2023-03-04 10:35:17">2023-03-04</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/04/blinker%E7%A4%BA%E4%BE%8B/" title="esp32-c3 blinker示例">esp32-c3 blinker示例</a><time datetime="2023-03-04T02:05:43.000Z" title="发表于 2023-03-04 10:05:43">2023-03-04</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/04/esp32-c3%E5%BC%80%E5%8F%91%E6%9D%BF%E4%BD%BF%E7%94%A8blinker%E8%B8%A9%E5%9D%91%E6%8C%87%E5%8D%97/" title="esp32-c3开发板使用blinker编译失败">esp32-c3开发板使用blinker编译失败</a><time datetime="2023-03-04T01:33:52.000Z" title="发表于 2023-03-04 09:33:52">2023-03-04</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/01/19/hexo%E4%B8%BB%E9%A2%98-butterfly/" title="hexo主题-butterfly">hexo主题-butterfly</a><time datetime="2023-01-19T09:48:31.000Z" title="发表于 2023-01-19 17:48:31">2023-01-19</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
<i class="fas fa-folder-open"></i>
<span>分类</span>
</div>
<ul class="card-category-list" id="aside-cat-list">
<li class="card-category-list-item "><a class="card-category-list-link" href="/categories/linuxdeploy%E6%90%AD%E5%BB%BAhexo/"><span class="card-category-list-name">linuxdeploy搭建hexo</span><span class="card-category-list-count">5</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/uncategorized/"><span class="card-category-list-name">uncategorized</span><span class="card-category-list-count">9</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E5%85%AC%E5%91%8A/"><span class="card-category-list-name">公告</span><span class="card-category-list-count">2</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E6%99%AE%E9%80%9A%E6%96%87%E7%AB%A0/"><span class="card-category-list-name">普通文章</span><span class="card-category-list-count">23</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/"><span class="card-category-list-name">默认(2023)</span><span class="card-category-list-count">10</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/arduino/"><span class="card-category-list-name">arduino</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/esp32-c3/"><span class="card-category-list-name">esp32-c3</span><span class="card-category-list-count">2</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E9%BB%98%E8%AE%A4%EF%BC%882023%EF%BC%89/linuxdeploy%E6%90%AD%E5%BB%BAhexo/"><span class="card-category-list-name">linuxdeploy搭建hexo</span><span class="card-category-list-count">2</span></a></li></ul></li>
</ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/github-hexo-linuxdeploy-%E5%AE%89%E5%8D%93-markdown/" style="font-size: 1.1em; color: #999">-github -hexo -linuxdeploy -安卓 -markdown</a> <a href="/tags/0-96-tft/" style="font-size: 1.1em; color: #999">0.96 tft</a> <a href="/tags/Fluid/" style="font-size: 1.1em; color: #999">Fluid</a> <a href="/tags/WordPress/" style="font-size: 1.18em; color: #999ca1">WordPress</a> <a href="/tags/arduino/" style="font-size: 1.42em; color: #99a6b7">arduino</a> <a href="/tags/blinker/" style="font-size: 1.18em; color: #999ca1">blinker</a> <a href="/tags/butterfly/" style="font-size: 1.1em; color: #999">butterfly</a> <a href="/tags/esp32-c3/" style="font-size: 1.18em; color: #999ca1">esp32-c3</a> <a href="/tags/esp8266/" style="font-size: 1.26em; color: #999fa8">esp8266</a> <a href="/tags/github-page/" style="font-size: 1.1em; color: #999">github page</a> <a href="/tags/githubpages/" style="font-size: 1.18em; color: #999ca1">githubpages</a> <a href="/tags/hexo/" style="font-size: 1.5em; color: #99a9bf">hexo</a> <a href="/tags/linuxdeploy/" style="font-size: 1.34em; color: #99a3b0">linuxdeploy</a> <a href="/tags/sitemap/" style="font-size: 1.1em; color: #999">sitemap</a> <a href="/tags/tft/" style="font-size: 1.1em; color: #999">tft</a> <a href="/tags/usb-to-ttl/" style="font-size: 1.1em; color: #999">usb to ttl</a> <a href="/tags/%E5%85%AC%E5%91%8A/" style="font-size: 1.1em; color: #999">公告</a> <a href="/tags/%E5%88%B6%E4%BD%9C/" style="font-size: 1.1em; color: #999">制作</a> <a href="/tags/%E5%90%88%E5%AE%99air32/" style="font-size: 1.1em; color: #999">合宙air32</a> <a href="/tags/%E5%AD%A6%E4%B9%A0/" style="font-size: 1.1em; color: #999">学习</a> <a href="/tags/%E6%8F%92%E4%BB%B6/" style="font-size: 1.1em; color: #999">插件</a> <a href="/tags/%E6%97%A7%E6%89%8B%E6%9C%BA/" style="font-size: 1.18em; color: #999ca1">旧手机</a> <a href="/tags/%E6%98%BE%E7%A4%BA%E5%B1%8F/" style="font-size: 1.1em; color: #999">显示屏</a> <a href="/tags/%E7%82%B9%E7%81%AF%E7%A7%91%E6%8A%80/" style="font-size: 1.1em; color: #999">点灯科技</a> <a href="/tags/%E7%94%9F%E6%B4%BB/" style="font-size: 1.26em; color: #999fa8">生活</a> <a href="/tags/%E7%AC%94%E8%AE%B0/" style="font-size: 1.1em; color: #999">笔记</a> <a href="/tags/%E8%87%AA%E5%AE%9A%E4%B9%89/" style="font-size: 1.1em; color: #999">自定义</a> <a href="/tags/%E9%98%BF%E9%87%8C%E4%BA%91/" style="font-size: 1.1em; color: #999">阿里云</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span><a class="card-more-btn" href="/archives/" title="查看更多">
<i class="fas fa-angle-right"></i></a></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/05/"><span class="card-archive-list-date">五月 2023</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/03/"><span class="card-archive-list-date">三月 2023</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/01/"><span class="card-archive-list-date">一月 2023</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/12/"><span class="card-archive-list-date">十二月 2022</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/02/"><span class="card-archive-list-date">二月 2022</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/01/"><span class="card-archive-list-date">一月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/12/"><span class="card-archive-list-date">十二月 2021</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/11/"><span class="card-archive-list-date">十一月 2021</span><span class="card-archive-list-count">2</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">44</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2019-12-31T16:00:00.000Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">13.7k</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2023-06-22T06:15:55.856Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">©2020 - 2023 By luqizhi</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/4.0.31/fancybox.umd.min.js"></script><div class="js-pjax"></div><link rel="stylesheet" href="/js/APlayer.min.css"><div id="aplayer"></div><script src="/js/APlayer.min.js"></script><script src="/js/music.js"></script><canvas class="fireworks" mobile="false"></canvas><script src="https://cdnjs.cloudflare.com/ajax/libs/butterfly-extsrc/1.1.3/fireworks.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/butterfly-extsrc/1.1.3/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = false;
document.body.addEventListener('input', POWERMODE);
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/pjax/0.2.8/pjax.min.js"></script><script>let pjaxSelectors = ["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax"]
var pjax = new Pjax({
elements: 'a:not([target="_blank"])',
selectors: pjaxSelectors,
cacheBust: false,
analytics: false,
scrollRestoration: false
})
document.addEventListener('pjax:send', function () {
// removeEventListener scroll
window.tocScrollFn && window.removeEventListener('scroll', window.tocScrollFn)
window.scrollCollect && window.removeEventListener('scroll', scrollCollect)
document.getElementById('rightside').style.cssText = "opacity: ''; transform: ''"
if (window.aplayers) {
for (let i = 0; i < window.aplayers.length; i++) {
if (!window.aplayers[i].options.fixed) {
window.aplayers[i].destroy()
}
}
}
typeof typed === 'object' && typed.destroy()
//reset readmode
const $bodyClassList = document.body.classList
$bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')
typeof disqusjs === 'object' && disqusjs.destroy()
})
document.addEventListener('pjax:complete', function () {
window.refreshFn()
document.querySelectorAll('script[data-pjax]').forEach(item => {
const newScript = document.createElement('script')
const content = item.text || item.textContent || item.innerHTML || ""
Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
newScript.appendChild(document.createTextNode(content))
item.parentNode.replaceChild(newScript, item)
})
GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()
typeof chatBtnFn === 'function' && chatBtnFn()
typeof panguInit === 'function' && panguInit()
// google analytics
typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});
// baidu analytics
typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
// prismjs
typeof Prism === 'object' && Prism.highlightAll()
})
document.addEventListener('pjax:error', (e) => {
if (e.request.status === 404) {
pjax.loadUrl('/404.html')
}
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>