<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>admin</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <id>https://612537.xyz/</id>
  <link href="https://612537.xyz/" rel="alternate"/>
  <link href="https://612537.xyz/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, admin</rights>
  <subtitle>开发日志与设计方案</subtitle>
  <title>6号航站楼</title>
  <updated>2026-10-25T01:00:00.000Z</updated>
  <entry>
    <author>
      <name>admin</name>
    </author>
    <category term="开发日志" scheme="https://612537.xyz/categories/%E5%BC%80%E5%8F%91%E6%97%A5%E5%BF%97/"/>
    <category term="hexo" scheme="https://612537.xyz/tags/hexo/"/>
    <category term="cloudflare" scheme="https://612537.xyz/tags/cloudflare/"/>
    <category term="博客搭建" scheme="https://612537.xyz/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/"/>
    <content>
      <![CDATA[<h2 id="为什么选-Hexo"><a href="#为什么选-Hexo" class="headerlink" title="为什么选 Hexo"></a>为什么选 Hexo</h2><p>这一节解释引擎选择。</p><h3 id="与-Hugo-的对比"><a href="#与-Hugo-的对比" class="headerlink" title="与 Hugo 的对比"></a>与 Hugo 的对比</h3><p>Hugo 构建更快，但改主题要会 Go template。Hexo 的主题是 EJS，改起来更直白。</p><h2 id="为什么必须买域名"><a href="#为什么必须买域名" class="headerlink" title="为什么必须买域名"></a>为什么必须买域名</h2><p>裸的 <code>pages.dev</code> 子域在国内打不开。</p><figure class="highlight powershell"><table><tr><td class="code"><pre><span class="line"><span class="comment"># 验证域名是否已指向 Cloudflare</span></span><br><span class="line"><span class="built_in">Resolve-DnsName</span> <span class="number">612537</span>.xyz <span class="literal">-Type</span> A</span><br><span class="line"><span class="built_in">Resolve-DnsName</span> <span class="number">612537</span>.xyz <span class="literal">-Type</span> NS</span><br></pre></td></tr></table></figure><p>下面是行内代码 <code>post_asset_folder: true</code> 的样式测试。</p><h3 id="表格测试"><a href="#表格测试" class="headerlink" title="表格测试"></a>表格测试</h3><table><thead><tr><th>项目</th><th>免费额度</th><th>说明</th></tr></thead><tbody><tr><td>静态请求</td><td>无限制</td><td>不花钱</td></tr><tr><td>构建次数</td><td>500&#x2F;月</td><td>够用</td></tr></tbody></table><h2 id="踩到的坑"><a href="#踩到的坑" class="headerlink" title="踩到的坑"></a>踩到的坑</h2><h3 id="site-posts-没有-group-方法"><a href="#site-posts-没有-group-方法" class="headerlink" title="site.posts 没有 group 方法"></a>site.posts 没有 group 方法</h3><p>Hexo 的 Query 原型上没有 <code>group()</code>，归档页按年分组必须手动实现。</p><h2 id="中文搜索测试"><a href="#中文搜索测试" class="headerlink" title="中文搜索测试"></a>中文搜索测试</h2><p>这一段包含关键词：分布式锁、一致性哈希、零拷贝，用来验证站内搜索能否命中中文。</p>]]>
    </content>
    <id>https://612537.xyz/2026/10/blog-setup/</id>
    <link href="https://612537.xyz/2026/10/blog-setup/"/>
    <published>2026-10-11T07:30:00.000Z</published>
    <summary>
      <![CDATA[<h2 id="为什么选-Hexo"><a href="#为什么选-Hexo" class="headerlink" title="为什么选 Hexo"></a>为什么选 Hexo</h2><p>这一节解释引擎选择。</p>
<h3 id="与-Hugo-的对比"><a]]>
    </summary>
    <title>博客搭建记录（第一篇测试）</title>
    <updated>2026-10-25T01:00:00.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>admin</name>
    </author>
    <category term="设计方案" scheme="https://612537.xyz/categories/%E8%AE%BE%E8%AE%A1%E6%96%B9%E6%A1%88/"/>
    <category term="hexo" scheme="https://612537.xyz/tags/hexo/"/>
    <category term="博客搭建" scheme="https://612537.xyz/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/"/>
    <category term="内容流水线" scheme="https://612537.xyz/tags/%E5%86%85%E5%AE%B9%E6%B5%81%E6%B0%B4%E7%BA%BF/"/>
    <content>
      <![CDATA[<h2 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h2><p>开发日志与设计方案经常附带 Word 和 PowerPoint 素材，但纯 Markdown 博客无法承载这些内容：</p><ul><li>搜索引擎读不到 <code>.docx</code> &#x2F; <code>.pptx</code> 里的文字</li><li>读者不想为了看一眼 PPT 就下载整个文件</li><li>把文件塞进正文图片会让文章变得很长</li></ul><h2 id="结论"><a href="#结论" class="headerlink" title="结论"></a>结论</h2><p>采用<strong>三层处理</strong>：</p><table><thead><tr><th>层</th><th>处理方式</th><th>目的</th></tr></thead><tbody><tr><td>正文</td><td>手写 Markdown</td><td>可被搜索引擎索引</td></tr><tr><td>PPT</td><td>逐页导出 PNG，渲染成画廊</td><td>不依赖外部查看器即可阅读</td></tr><tr><td>原文件</td><td>下载卡片，元数据构建时读取</td><td>需要源文件的人能拿到</td></tr></tbody></table><h2 id="代价"><a href="#代价" class="headerlink" title="代价"></a>代价</h2><ul><li>PPT 转图需要本机有 PowerPoint 或 LibreOffice，换机器要重新确认</li><li>单文件超过 25 MiB 无法部署，必须改走 R2 或网盘</li><li>每页幻灯片占一个文件，50 页 PPT 就是 50 个文件，计入站点 20000 文件上限</li></ul><h2 id="状态"><a href="#状态" class="headerlink" title="状态"></a>状态</h2><p>有效。已验证 PPT 逐页导出可用（1600×900 PNG）。</p><h2 id="幻灯片"><a href="#幻灯片" class="headerlink" title="幻灯片"></a>幻灯片</h2><p>下面是随文附带的演示稿，逐页导出为图片后在这里直接翻阅：</p><div class="deck" data-total="3"><div class="deck-caption">架构评审 v3</div><div class="deck-stage"><img class="deck-image" src="/2026/10/content-pipeline/slides/v3-01.png" alt="架构评审 v3 1" loading="lazy"></div><div class="deck-nav"><button type="button" class="deck-prev" disabled>&larr; 上一页</button><span class="deck-count">1 / 3</span><button type="button" class="deck-next">下一页 &rarr;</button></div><div class="deck-thumbs"><img class="deck-thumb active" src="/2026/10/content-pipeline/slides/v3-01.png" alt="架构评审 v3 1" data-index="0" loading="lazy"><img class="deck-thumb" src="/2026/10/content-pipeline/slides/v3-02.png" alt="架构评审 v3 2" data-index="1" loading="lazy"><img class="deck-thumb" src="/2026/10/content-pipeline/slides/v3-03.png" alt="架构评审 v3 3" data-index="2" loading="lazy"></div></div><h2 id="附件"><a href="#附件" class="headerlink" title="附件"></a>附件</h2><div class="attachment"><span class="att-icon">DOCX</span><span class="att-info"><a class="att-name" href="/2026/10/content-pipeline/%E8%AE%BE%E8%AE%A1%E6%96%B9%E6%A1%88-v2.docx">设计方案-v2.docx</a><span class="att-note">Word 文档 · 37 KB · 更新于 2026-10-11 · 完整设计方案，含三层处理的取舍说明</span></span><a class="att-action" href="/2026/10/content-pipeline/%E8%AE%BE%E8%AE%A1%E6%96%B9%E6%A1%88-v2.docx" download>下载</a></div><h2 id="变更记录"><a href="#变更记录" class="headerlink" title="变更记录"></a>变更记录</h2><ul><li>v1.2 · 2026-10-15 · 取消正文顶部素材栏 · 与文末下载卡片重复</li><li>v1.1 · 2026-10-13 · 下载卡片改为构建时读取真实文件体积 · 避免手写数字过期</li><li>v1.0 · 2026-10-12 · 初版</li></ul>]]>
    </content>
    <id>https://612537.xyz/2026/10/content-pipeline/</id>
    <link href="https://612537.xyz/2026/10/content-pipeline/"/>
    <published>2026-10-12T02:00:00.000Z</published>
    <summary>
      <![CDATA[<h2 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h2><p>开发日志与设计方案经常附带 Word 和 PowerPoint 素材，但纯 Markdown]]>
    </summary>
    <title>内容流水线设计方案</title>
    <updated>2026-10-15T06:20:00.000Z</updated>
  </entry>
</feed>
