Skip to content

Commit

Permalink
Site updated: 2024-11-08 17:05:01
Browse files Browse the repository at this point in the history
  • Loading branch information
a641969353 committed Nov 8, 2024
1 parent 2820596 commit 98f54fc
Show file tree
Hide file tree
Showing 234 changed files with 5,359 additions and 2,590 deletions.
14 changes: 7 additions & 7 deletions 2021/01/01/145a1920f348/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2021/05/04/290fbc002946/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2023/09/21/037b43cd53d9/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/08/eda54285e852/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/09/0673e2301734/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/10/51fa0d872217/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/16/4681ff84ccf3/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/16/ef7e309aa1eb/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/23/979fc3b16655/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/23/d5d33bdaa68f/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/05/29/15d7b13129c0/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/06/11/7890000bc707/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/07/03/c8db0b087a94/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/08/20/51029141b91f/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/09/07/916f7cda781a/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/09/25/35832a441121/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/09/25/e2a7186bc189/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/10/ec06eeb0adff/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/15/74a70a62f3b4/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/18/c5cd3b3780fc/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/19/391b7a4df277/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/19/4625d0b7ed27/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/19/b90e47c7e5a0/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/19/dc63ecb1142e/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/21/1d2a6f85d3f7/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/21/8803d6a9e06d/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/21/ad715d53afba/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/21/b74b8ec7e417/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/21/be743ddf561b/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/2cc7acb57128/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/4de2bfd9848b/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/68f75ac070e2/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/9a5a0568022f/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/bdadf3e2dd86/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/c0d92f275632/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/d852ddbbc257/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/e49567454975/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/22/f85ae47c487c/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/23/7b5efa398b63/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/24/2f91b3f1804e/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/24/45415e09698e/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/10/30/cf403dbe36d3/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/11/01/b7b4550e6ac7/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions 2024/11/04/79d2eab3e93c/index.html

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions 2024/11/05/b4e5a4c77d8e/index.html

Large diffs are not rendered by default.

965 changes: 965 additions & 0 deletions 2024/11/08/8eb747462c1d/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 介绍
github提供静态网页服务。
使用Next-Pisces主题+若干插件。
[![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=leafminer)](https://github.com/anuraghazra/github-readme-stats)
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=leafminer)](https://github.com/anuraghazra/github-readme-stats)

——————

14 changes: 7 additions & 7 deletions about/index.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions archives/2021/01/index.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions archives/2021/05/index.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions archives/2021/index.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions archives/2023/09/index.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions archives/2023/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/05/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/06/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/07/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/08/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/09/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/10/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/10/page/2/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions archives/2024/10/page/3/index.html

Large diffs are not rendered by default.

38 changes: 29 additions & 9 deletions archives/2024/11/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/2024/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/2024/page/2/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/2024/page/3/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/2024/page/4/index.html

Large diffs are not rendered by default.

38 changes: 29 additions & 9 deletions archives/2024/page/5/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/page/2/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/page/3/index.html

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions archives/page/4/index.html

Large diffs are not rendered by default.

38 changes: 29 additions & 9 deletions archives/page/5/index.html

Large diffs are not rendered by default.

62 changes: 32 additions & 30 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="https://leafminer.github.io/atom.xml" rel="self"/>

<link href="https://leafminer.github.io/"/>
<updated>2024-11-05T18:13:44.634Z</updated>
<updated>2024-11-08T03:06:52.040Z</updated>
<id>https://leafminer.github.io/</id>

<author>
Expand All @@ -16,6 +16,37 @@

<generator uri="https://hexo.io/">Hexo</generator>

<entry>
<title>用 vercel + Github 搭建 hexo 博客</title>
<link href="https://leafminer.github.io/2024/11/08/8eb747462c1d/"/>
<id>https://leafminer.github.io/2024/11/08/8eb747462c1d/</id>
<published>2024-11-08T02:46:20.000Z</published>
<updated>2024-11-08T03:06:52.040Z</updated>

<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="\assets\js\Meting.min.js"></script><div id="vip-container"><p><span class="exturl" data-url="aHR0cHM6Ly92ZXJjZWwuY29tLw==">Vercel<i class="fa fa-external-link-alt"></i></span> 提供了一个云平台,可以优化整个项目开发和部署体验,它有很强大的功能值得去探索,个人使用是免费的,提供了域名访问,使用方便快捷。在vercel上选择New Project,然后如果你是用Github账号登录的话,这边会显示你的所有Github仓库,选择github pages的仓库即可往github上push的任何更改,都会同步到vercel上。把 Hexo 文件放在 Github 上,每次更新文件都推送到 Github 上,由 Vercel 自动拉取构建。</p><span id="more"></span><h2 id="搭建前准备">搭建前准备</h2><ol><li class="lvl-3"><p>注册Github账号</p></li><li class="lvl-3"><p>注册Vercel账号,建议使用Github授权登录,方便后续部署。</p></li><li class="lvl-3"><p>本地安装hexo和node</p></li></ol><h2 id="创建项目">创建项目</h2><p>vercel 平台中选择hexo模版,创建新项目,也可以选git 仓库中已存在的项目。</p><p>​<img data-src="https://cdn.nlark.com/yuque/0/2024/png/12885947/1731029999479-af39687f-7e21-499c-8e59-26d5e4091ed1.png" alt="">​</p><h2 id="后续使用">后续使用</h2><p>在 GitHub 中将我们创建好的博客项目 clone 到本地。</p><h2 id="使用vercel部署hexo博客出现的问题解决">使用vercel部署hexo博客出现的问题解决</h2><p>通常来说只需要import导入github中的博客项目,然后在Framework Preset中选择“Hexo”,最后deploy部署即可。</p><h4 id="问题一:“hexo-command-not-found”">问题一:“hexo:command not found”</h4><p>经过一通搜索后,大概猜到了是npm的问题,可以打开项目的Setting:</p><p>将“Install Command”一栏打开,并输入“npm install”,保存后该问题解决。</p><h4 id="问题二:“no-such-file-or-directory-open-‘-vercel-path0-package-json’”">问题二:“no such file or directory, open ‘/vercel/path0/package.json’”</h4><p>在github项目库中确实没有这个文件,于是手动将根目录下的package.json上传即可。</p><h4 id="问题三:“The-Output-Directory-“public”-is-empty”">问题三:“The Output Directory “public” is empty”</h4><p>由于import的时候默认选择了Output Directory为public,但实际上github项目库中没有这个文件夹,因此也需要修改Setting,将”Output Directory“这一栏打开,内容为空,保存即可。</p><h2 id="参考">参考</h2><ol><li class="lvl-3"><p><span class="exturl" data-url="aHR0cHM6Ly9qdWVqaW4uY24vcG9zdC82OTE1MjQ2MjUwOTMzNjE2NjQ4">如何使用 vercel + hexo 搭建博客vercel: Vercel 提供了一个云平台,可以优化整个项目开发和部署 - 掘金<i class="fa fa-external-link-alt"></i></span></p></li><li class="lvl-3"><p><span class="exturl" data-url="aHR0cHM6Ly9vaGV2YW4uY29tL3ZlcmNlbC1oZXhvLWNvbmZpZ3VyYXRpb24uaHRtbA==">使用 Vercel 和 Github 部署 Hexo 安装以及使用教程 | EvanNotFound's Blog<i class="fa fa-external-link-alt"></i></span></p></li><li class="lvl-3"><p><span class="exturl" data-url="aHR0cHM6Ly95dXhpLTE3LWdpdGh1Yi1pby52ZXJjZWwuYXBwLzIwMjQvMDYvMDYvJUU0JUJEJUJGJUU3JTk0JUE4dmVyY2VsJUU5JTgzJUE4JUU3JUJEJUIyaGV4byVFNSU4RCU5QSVFNSVBRSVBMiVFNSU4NyVCQSVFNyU4RSVCMCVFNyU5QSU4NCVFOSU5NyVBRSVFOSVBMiU5OCVFOCVBNyVBMyVFNSU4NiVCMy8=">yuxi-17-github-io.vercel.app<i class="fa fa-external-link-alt"></i></span></p></li></ol></div><script src="https://my.openwrite.cn/js/readmore.js" type="text/javascript"></script><script>var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);if (!isMobile) { var btw = new BTWPlugin(); btw.init({ "id": "vip-container", "blogId": "33502-1730425843713-524", "name": "虫子的生存笔记", "qrcode": "https://leaf-miner.pages.dev/image/%E5%85%AC%E4%BC%97%E5%8F%B7.png", "keyword": "more" });}</script>]]></content>


<summary type="html">&lt;p&gt;&lt;a href=&quot;https://vercel.com/&quot;&gt;Vercel&lt;/a&gt; 提供了一个云平台,可以优化整个项目开发和部署体验,它有很强大的功能值得去探索,个人使用是免费的,提供了域名访问,使用方便快捷。在vercel上选择New Project,然后如果你是用Github账号登录的话,这边会显示你的所有Github仓库,选择github pages的仓库即可往github上push的任何更改,都会同步到vercel上。把 Hexo 文件放在 Github 上,每次更新文件都推送到 Github 上,由 Vercel 自动拉取构建。&lt;/p&gt;</summary>



<category term="笔记" scheme="https://leafminer.github.io/categories/%E7%AC%94%E8%AE%B0/"/>

<category term="其他" scheme="https://leafminer.github.io/categories/%E7%AC%94%E8%AE%B0/%E5%85%B6%E4%BB%96/"/>


<category term="Hexo" scheme="https://leafminer.github.io/tags/Hexo/"/>

<category term="Github" scheme="https://leafminer.github.io/tags/Github/"/>

<category term="部署" scheme="https://leafminer.github.io/tags/%E9%83%A8%E7%BD%B2/"/>

<category term="vercel" scheme="https://leafminer.github.io/tags/vercel/"/>

<category term="搭建" scheme="https://leafminer.github.io/tags/%E6%90%AD%E5%BB%BA/"/>

</entry>

<entry>
<title>Hexo博客Next主题加入音乐播放器-Aplayer</title>
<link href="https://leafminer.github.io/2024/11/05/b4e5a4c77d8e/"/>
Expand Down Expand Up @@ -607,33 +638,4 @@

</entry>

<entry>
<title>【转载】 Hexo 的一些冷门小问题——category_map和permalink</title>
<link href="https://leafminer.github.io/2024/10/21/b74b8ec7e417/"/>
<id>https://leafminer.github.io/2024/10/21/b74b8ec7e417/</id>
<published>2024-10-21T12:41:32.000Z</published>
<updated>2024-10-21T14:41:56.937Z</updated>

<content type="html"><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="\assets\js\Meting.min.js"></script><div id="vip-container"><p>初入 Hexo 模板开发,难免要熟悉 Hexo 程序本身的一些特性和使用操作,于是就立下了这篇博文,之后也会陆陆续续进行更新和完善。</p><span id="more"></span><h2 id="分类名改成英文">分类名改成英文</h2><p>分类名称默认是你在文章里面设置的,如果是中文分类名,那么路径名也是中文了,特别别扭。我在文档上查到了一个名为 <code>category_map</code>​ 的设置项,但文档上并没有详细的说明。直到我看到这个 <span class="exturl" data-url="aHR0cHM6Ly9naXRodWIuY29tL2hleG9qcy9oZXhvL2lzc3Vlcy85MDg=">Issue<i class="fa fa-external-link-alt"></i></span> 之后瞬间明白,就是一个键值对嘛。</p><figure class="highlight plaintext"><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></pre></td><td class="code"><pre><span class="line">// Before</span><br><span class="line">http://localhost:4000/进击的码农/js-hover-dropdown-menu/</span><br><span class="line"></span><br><span class="line">// After</span><br><span class="line">http://localhost:4000/coding/js-hover-dropdown-menu/</span><br></pre></td></tr></table></figure><p>修改办法就是打开你的 Hexo 配置文件 <code>_config.yml</code>​,修改 <code>category_map</code>​ 属性,大概按照这样的格式:</p><figure class="highlight plaintext"><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">category_map:</span><br><span class="line"> &#x27;随笔与杂谈&#x27;: essay</span><br><span class="line"> &#x27;做个技术宅&#x27;: tech</span><br><span class="line"> &#x27;进击的码农&#x27;: coding</span><br><span class="line"> &#x27;设计新视界&#x27;: design</span><br><span class="line"> &#x27;有趣的分享&#x27;: share</span><br></pre></td></tr></table></figure><p>还有一个类似的属性 <code>tag_map</code>​ 也是同理。</p><h2 id="文章链接生成">文章链接生成</h2><p>Hexo 默认根据文件名来生成博文的 URL,你也可以把它当作一个页面的形式去设置,在文章顶部添加 <code>permalink</code>​ 设置就可以了,但保罗觉得也许并不应该这么做。可以尝试把文件名写的短一些?</p><figure class="highlight plaintext"><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></pre></td><td class="code"><pre><span class="line">// Before:</span><br><span class="line">http://localhost:4000/coding/js-hover-dropdown-menu/</span><br><span class="line"></span><br><span class="line">// After:</span><br><span class="line">http://localhost:4000/js-hover-dropdown-menu/</span><br></pre></td></tr></table></figure><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></pre></td><td class="code"><pre><span class="line">---</span><br><span class="line">title: 使用原生 JS 写一个悬浮下拉菜单</span><br><span class="line">category: 进击的码农</span><br><span class="line">tags: JavaScript</span><br><span class="line"><span class="section">permalink: js-hover-dropdown-menu</span></span><br><span class="line"><span class="section">---</span></span><br></pre></td></tr></table></figure><hr><h4 id="Paul">Paul</h4><p>特立独行的一只前端菜狗。本站未注明转载的文章均为原创,并采用 <span class="exturl" data-url="aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzQuMC9kZWVkLnpo">CC BY-NC-SA 4.0<i class="fa fa-external-link-alt"></i></span> 授权协议,转载请注明来源,谢谢!如本站内容对你有所帮助的话,不妨 <span class="exturl" data-url="aHR0cHM6Ly9wYXVsLnJlbi9kb25hdGU=">捐助支持<i class="fa fa-external-link-alt"></i></span> 一下?同时欢迎订阅关注 <span class="exturl" data-url="aHR0cHM6Ly9wYXVsLnJlbi9ub3Rl">我的日记<i class="fa fa-external-link-alt"></i></span>,唠嗑(分享)每日的折腾经历。</p><h2 id="原文地址">原文地址</h2><p><span class="exturl" data-url="aHR0cHM6Ly9wYXVncmFtLmNvbS9jb2RpbmcvaGV4by1zZWNyZXQtdXNhZ2UuaHRtbA==">Hexo 的一些冷门小问题 - 保罗的小宇宙 (paugram.com)<i class="fa fa-external-link-alt"></i></span></p></div><script src="https://my.openwrite.cn/js/readmore.js" type="text/javascript"></script><script>var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);if (!isMobile) { var btw = new BTWPlugin(); btw.init({ "id": "vip-container", "blogId": "33502-1730425843713-524", "name": "虫子的生存笔记", "qrcode": "https://leaf-miner.pages.dev/image/%E5%85%AC%E4%BC%97%E5%8F%B7.png", "keyword": "more" });}</script>]]></content>


<summary type="html">&lt;p&gt;初入 Hexo 模板开发,难免要熟悉 Hexo 程序本身的一些特性和使用操作,于是就立下了这篇博文,之后也会陆陆续续进行更新和完善。&lt;/p&gt;</summary>



<category term="转载" scheme="https://leafminer.github.io/categories/%E8%BD%AC%E8%BD%BD/"/>

<category term="其他" scheme="https://leafminer.github.io/categories/%E8%BD%AC%E8%BD%BD/%E5%85%B6%E4%BB%96/"/>


<category term="Hexo" scheme="https://leafminer.github.io/tags/Hexo/"/>

<category term="博客" scheme="https://leafminer.github.io/tags/%E5%8D%9A%E5%AE%A2/"/>

<category term="category_map" scheme="https://leafminer.github.io/tags/category-map/"/>

<category term="permalink" scheme="https://leafminer.github.io/tags/permalink/"/>

</entry>

</feed>
4 changes: 4 additions & 0 deletions baidusitemap.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://leafminer.github.io/2024/11/08/8eb747462c1d/</loc>
<lastmod>2024-11-08</lastmod>
</url>
<url>
<loc>https://leafminer.github.io/2024/11/05/b4e5a4c77d8e/</loc>
<lastmod>2024-11-05</lastmod>
Expand Down
16 changes: 8 additions & 8 deletions categories/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/原创/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/原创/其他/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/原创/生活/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/原创/科研/index.html

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions categories/笔记/index.html

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions categories/笔记/page/2/index.html

Large diffs are not rendered by default.

57 changes: 27 additions & 30 deletions categories/笔记/page/3/index.html

Large diffs are not rendered by default.

37 changes: 30 additions & 7 deletions categories/笔记/page/4/index.html

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions categories/笔记/其他/index.html

Large diffs are not rendered by default.

34 changes: 27 additions & 7 deletions categories/笔记/其他/page/2/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/笔记/学习/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/笔记/学习/page/2/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/笔记/科研/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/转载/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/转载/其他/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions categories/转载/学习/index.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions guestbook/index.html

Large diffs are not rendered by default.

248 changes: 121 additions & 127 deletions index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/third-party/analytics/baidu-analytics.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global _hmt */

if (!window._hmt) window._hmt = [];

document.referrer = document.location.href;
document.addEventListener('pjax:success', () => {
_hmt.push(['_trackPageview', location.pathname]);
});
276 changes: 141 additions & 135 deletions page/2/index.html

Large diffs are not rendered by default.

282 changes: 138 additions & 144 deletions page/3/index.html

Large diffs are not rendered by default.

289 changes: 144 additions & 145 deletions page/4/index.html

Large diffs are not rendered by default.

152 changes: 145 additions & 7 deletions page/5/index.html

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,78 @@
<tag>全球</tag>
</tags>
</entry>
<entry>
<title>用 vercel + Github 搭建 hexo 博客</title>
<url>/2024/11/08/8eb747462c1d/</url>
<content><![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="\assets\css\APlayer.min.css"><script src="\assets\js\APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="\assets\js\Meting.min.js"></script><div id="vip-container"><p><span class="exturl" data-url="aHR0cHM6Ly92ZXJjZWwuY29tLw==">Vercel<i class="fa fa-external-link-alt"></i></span> 提供了一个云平台,可以优化整个项目开发和部署体验,它有很强大的功能值得去探索,个人使用是免费的,提供了域名访问,使用方便快捷。在vercel上选择New Project,然后如果你是用Github账号登录的话,这边会显示你的所有Github仓库,选择github pages的仓库即可往github上push的任何更改,都会同步到vercel上。把 Hexo 文件放在 Github 上,每次更新文件都推送到 Github 上,由 Vercel 自动拉取构建。</p>
<span id="more"></span>
<h2 id="搭建前准备">搭建前准备</h2>
<ol>
<li class="lvl-3">
<p>注册Github账号</p>
</li>
<li class="lvl-3">
<p>注册Vercel账号,建议使用Github授权登录,方便后续部署。</p>
</li>
<li class="lvl-3">
<p>本地安装hexo和node</p>
</li>
</ol>
<h2 id="创建项目">创建项目</h2>
<p>vercel 平台中选择hexo模版,创建新项目,也可以选git 仓库中已存在的项目。</p>
<p>​<img data-src="https://cdn.nlark.com/yuque/0/2024/png/12885947/1731029999479-af39687f-7e21-499c-8e59-26d5e4091ed1.png" alt="">​</p>
<h2 id="后续使用">后续使用</h2>
<p>在 GitHub 中将我们创建好的博客项目 clone 到本地。</p>
<h2 id="使用vercel部署hexo博客出现的问题解决">使用vercel部署hexo博客出现的问题解决</h2>
<p>通常来说只需要import导入github中的博客项目,然后在Framework Preset中选择“Hexo”,最后deploy部署即可。</p>
<h4 id="问题一:“hexo-command-not-found”">问题一:“hexo:command not found”</h4>
<p>经过一通搜索后,大概猜到了是npm的问题,可以打开项目的Setting:</p>
<p>将“Install Command”一栏打开,并输入“npm install”,保存后该问题解决。</p>
<h4 id="问题二:“no-such-file-or-directory-open-‘-vercel-path0-package-json’”">问题二:“no such file or directory, open ‘/vercel/path0/package.json’”</h4>
<p>在github项目库中确实没有这个文件,于是手动将根目录下的package.json上传即可。</p>
<h4 id="问题三:“The-Output-Directory-“public”-is-empty”">问题三:“The Output Directory “public” is empty”</h4>
<p>由于import的时候默认选择了Output Directory为public,但实际上github项目库中没有这个文件夹,因此也需要修改Setting,将”Output Directory“这一栏打开,内容为空,保存即可。</p>
<h2 id="参考">参考</h2>
<ol>
<li class="lvl-3">
<p><span class="exturl" data-url="aHR0cHM6Ly9qdWVqaW4uY24vcG9zdC82OTE1MjQ2MjUwOTMzNjE2NjQ4">如何使用 vercel + hexo 搭建博客vercel: Vercel 提供了一个云平台,可以优化整个项目开发和部署 - 掘金<i class="fa fa-external-link-alt"></i></span></p>
</li>
<li class="lvl-3">
<p><span class="exturl" data-url="aHR0cHM6Ly9vaGV2YW4uY29tL3ZlcmNlbC1oZXhvLWNvbmZpZ3VyYXRpb24uaHRtbA==">使用 Vercel 和 Github 部署 Hexo 安装以及使用教程 | EvanNotFound's Blog<i class="fa fa-external-link-alt"></i></span></p>
</li>
<li class="lvl-3">
<p><span class="exturl" data-url="aHR0cHM6Ly95dXhpLTE3LWdpdGh1Yi1pby52ZXJjZWwuYXBwLzIwMjQvMDYvMDYvJUU0JUJEJUJGJUU3JTk0JUE4dmVyY2VsJUU5JTgzJUE4JUU3JUJEJUIyaGV4byVFNSU4RCU5QSVFNSVBRSVBMiVFNSU4NyVCQSVFNyU4RSVCMCVFNyU5QSU4NCVFOSU5NyVBRSVFOSVBMiU5OCVFOCVBNyVBMyVFNSU4NiVCMy8=">yuxi-17-github-io.vercel.app<i class="fa fa-external-link-alt"></i></span></p>
</li>
</ol>
</div>
<script src="https://my.openwrite.cn/js/readmore.js" type="text/javascript"></script>
<script>
var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
if (!isMobile) {
var btw = new BTWPlugin();
btw.init({
"id": "vip-container",
"blogId": "33502-1730425843713-524",
"name": "虫子的生存笔记",
"qrcode": "https://leaf-miner.pages.dev/image/%E5%85%AC%E4%BC%97%E5%8F%B7.png",
"keyword": "more"
});
}
</script>
]]></content>
<categories>
<category>笔记</category>
<category>其他</category>
</categories>
<tags>
<tag>Hexo</tag>
<tag>Github</tag>
<tag>部署</tag>
<tag>vercel</tag>
<tag>搭建</tag>
</tags>
</entry>
<entry>
<title>Hexo博客Next主题加入音乐播放器-Aplayer</title>
<url>/2024/11/05/b4e5a4c77d8e/</url>
Expand Down
Loading

0 comments on commit 98f54fc

Please sign in to comment.