<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>知识混子</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <id>https://www.zbnr.skin/</id>
  <link href="https://www.zbnr.skin/" rel="alternate"/>
  <link href="https://www.zbnr.skin/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, 知识混子</rights>
  <subtitle>碎碎念与技术笔记</subtitle>
  <title>知识混子的天地</title>
  <updated>2026-10-12T06:49:27.229Z</updated>
  <entry>
    <author>
      <name>知识混子</name>
    </author>
    <category term="折腾" scheme="https://www.zbnr.skin/categories/%E6%8A%98%E8%85%BE/"/>
    <category term="Hexo" scheme="https://www.zbnr.skin/tags/Hexo/"/>
    <category term="Anzhiyu" scheme="https://www.zbnr.skin/tags/Anzhiyu/"/>
    <category term="Vercel" scheme="https://www.zbnr.skin/tags/Vercel/"/>
    <content>
      <![CDATA[<h2 id="为什么用子模块管理主题"><a href="#为什么用子模块管理主题" class="headerlink" title="为什么用子模块管理主题"></a>为什么用子模块管理主题</h2><p>安知鱼主题更新很频繁，直接 <code>git clone</code> 到 <code>themes/</code> 再提交进主仓库，会让仓库体积膨胀、升级也麻烦。用 Git 子模块可以把主题固定在一个具体提交上：</p><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">git submodule add -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu</span><br></pre></td></tr></table></figure><p>注意该仓库<strong>默认分支是 <code>dev</code></strong>，而官方 README 要求用 <code>-b main</code>（稳定版）。不加 <code>-b</code> 会拉到开发分支。</p><h2 id="覆盖配置放在根目录"><a href="#覆盖配置放在根目录" class="headerlink" title="覆盖配置放在根目录"></a>覆盖配置放在根目录</h2><p>主题的 <code>_config.yml</code> 不要直接改 —— 升级主题时会冲突。正确做法是复制到站点根目录并重命名：</p><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"><span class="built_in">cp</span> themes/anzhiyu/_config.yml ./_config.anzhiyu.yml</span><br></pre></td></tr></table></figure><p>只要根目录存在 <code>_config.anzhiyu.yml</code>，它的优先级就高于主题内的配置。</p><h2 id="渲染器依赖"><a href="#渲染器依赖" class="headerlink" title="渲染器依赖"></a>渲染器依赖</h2><p>安知鱼用 Pug + Stylus 写模板和样式，缺了会直接构建失败：</p><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">npm install hexo-renderer-pug hexo-renderer-stylus --save</span><br></pre></td></tr></table></figure><h2 id="Vercel-上的子模块坑"><a href="#Vercel-上的子模块坑" class="headerlink" title="Vercel 上的子模块坑"></a>Vercel 上的子模块坑</h2><p>Vercel 的 Git 集成在拉取子模块时可能失败，报 <code>Warning: Failed to fetch one or more git submodules</code>，结果构建出来只有空壳。在 <code>vercel.json</code> 的安装命令里补一句是幂等的保险：</p><figure class="highlight json"><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"><span class="punctuation">&#123;</span></span><br><span class="line">  <span class="attr">&quot;installCommand&quot;</span><span class="punctuation">:</span> <span class="string">&quot;git submodule update --init --recursive; npm install&quot;</span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;buildCommand&quot;</span><span class="punctuation">:</span> <span class="string">&quot;npm run build&quot;</span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;outputDirectory&quot;</span><span class="punctuation">:</span> <span class="string">&quot;public&quot;</span></span><br><span class="line"><span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure><p>构建命令用 <code>npm run build</code> 而不是裸 <code>hexo generate</code>，是为了确保 <code>node_modules/.bin</code> 在 PATH 中，不依赖全局安装的 hexo。</p><h2 id="小结"><a href="#小结" class="headerlink" title="小结"></a>小结</h2><table><thead><tr><th>环节</th><th>要点</th></tr></thead><tbody><tr><td>主题</td><td>子模块 + <code>-b main</code></td></tr><tr><td>配置</td><td>根目录 <code>_config.anzhiyu.yml</code> 覆盖</td></tr><tr><td>渲染</td><td>pug + stylus</td></tr><tr><td>部署</td><td><code>vercel.json</code> 显式声明三条命令</td></tr></tbody></table>]]>
    </content>
    <id>https://www.zbnr.skin/2026/10/11/hexo-anzhiyu-deploy/</id>
    <link href="https://www.zbnr.skin/2026/10/11/hexo-anzhiyu-deploy/"/>
    <published>2026-10-11T12:10:00.000Z</published>
    <summary>从零把一个 Hexo 博客跑起来，并用 Git 子模块管理主题、部署到 Vercel 的完整过程。</summary>
    <title>Hexo + 安知鱼主题 + Vercel 部署记录</title>
    <updated>2026-10-12T06:49:27.229Z</updated>
  </entry>
  <entry>
    <author>
      <name>知识混子</name>
    </author>
    <category term="随笔" scheme="https://www.zbnr.skin/categories/%E9%9A%8F%E7%AC%94/"/>
    <category term="解离" scheme="https://www.zbnr.skin/tags/%E8%A7%A3%E7%A6%BB/"/>
    <category term="决定论" scheme="https://www.zbnr.skin/tags/%E5%86%B3%E5%AE%9A%E8%AE%BA/"/>
    <category term="随笔" scheme="https://www.zbnr.skin/tags/%E9%9A%8F%E7%AC%94/"/>
    <content>
      <![CDATA[<p>失业大半年了，找了辅导小学生的兼职。时长不长，当然，薪资也少得可怜。</p><p>看着这些小学生，我想起了 10 年前的我：</p><ul><li>零负债</li><li>每天睡眠超过 8 个小时</li><li>保持低水平的皮质醇与体脂率</li><li>营养均衡</li><li>不饮酒，并且每天大量运动</li><li>每天大量饮水</li></ul><p>此刻，我才觉得那是我人生的巅峰时期。那一年我 13 岁。</p><h2 id="一道题"><a href="#一道题" class="headerlink" title="一道题"></a>一道题</h2><p>每天白天在求职软件上找工作，晚上去辅导作业，这样过了几天。</p><p>直到昨天，刷着工作笔试题目。千篇一律，毫无营养。说真的，能认真答下来的都是神，无聊透顶。突然刷到了这样一道题（如图所示），第一遍没理解过来，于是又读了一遍。</p><p><img src="/img/mine/exam-question.jpg" alt="笔试题"></p><p>字缝里沁着的恐惧活像是石头下的毒蛇。当我回过神的时候，阴冷与战栗已经在脊背上蛰伏已久了。</p><p>其实，就是一道判断悲观主义和乐观的题目，随便蒙一下就行了，又不是造火箭。</p><p>但是我迟疑了。我一瞬间联想到了邵雍占瓶的故事。</p><p>故事大概是：有一天邵雍看见桌上有个花瓶，心血来潮起了一卦，结果算出这个花瓶会在当天正午破碎。他觉得很奇怪，家里没小孩、没宠物，门窗紧闭也没风，花瓶怎么会自己碎呢？于是他不信邪，决定守在花瓶旁边，亲眼看看它到底是怎么碎的。</p><p>到了正午，他妻子喊他吃饭，喊了几次他都不理，眼睛死死盯着花瓶。妻子见他像中了邪一样，一气之下伸手把花瓶推倒，摔了个粉碎。</p><p>邵雍看着一地碎片，恍然大悟：原来花瓶碎掉的原因，正是他自己算卦后非要守着看这个行为本身。</p><h2 id="这是计划的一部分"><a href="#这是计划的一部分" class="headerlink" title="这是计划的一部分"></a>这是计划的一部分</h2><p>我耳边顿时响起了《三体》的那句话：”这是计划的一部分”。</p><p>一瞬间，像开启了第三人称一样——其实就是解离。感觉自己像小说人物一样，并不是因为我要做题而做题，而是我在这个时间应该做题。就像《三体》里的史强一样，只是一个工具人，为了达到推进故事而设置的。</p><p>那么我也是被设置好的。所谓的意识是个虚无，我的自由意识只是拉普拉斯兽算出应得的结果。</p><p>我愣了一会，我只能说我不知道。</p><p>过了一会儿，解离感结束。不是一个说一下回到第一人称——而当我意识到我发生了解离时，解离就已经结束了。</p><p>这道题选的什么，我也不记得了。</p><h2 id="第一次"><a href="#第一次" class="headerlink" title="第一次"></a>第一次</h2><p>记得我第一次发生解离的时候，是在大学。</p><p>中秋节宿舍集体去爬长城，我是因为有活动没去。活动开了一上午，跑前跑后累得不行，我中午没用膳就睡了。眯一会，结果睁眼就已经晚上了。</p><p>顿时有种异样的感觉，感觉像做了个梦，梦里上午在办活动，就类似庄公梦蝶那种感觉，我分不清楚了。</p><p>可能现在我还是在做梦吧。</p><p>这也是计划的一部分 ┐(￣ヮ￣)┌</p>]]>
    </content>
    <id>https://www.zbnr.skin/2026/09/22/this-is-part-of-the-plan/</id>
    <link href="https://www.zbnr.skin/2026/09/22/this-is-part-of-the-plan/"/>
    <published>2026-09-22T14:46:17.000Z</published>
    <summary>一道笔试题，一次解离，和一个守着花瓶的邵雍。</summary>
    <title>这也是计划的一部分</title>
    <updated>2026-10-12T06:49:27.229Z</updated>
  </entry>
</feed>
