<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>ShowWhen</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <id>https://showwhen.top/</id>
  <link href="https://showwhen.top/" rel="alternate"/>
  <link href="https://showwhen.top/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, ShowWhen</rights>
  <subtitle>记录，像星光一样闪烁</subtitle>
  <title>ShowWhen</title>
  <updated>2026-09-25T17:41:09.036Z</updated>
  <entry>
    <author>
      <name>ShowWhen</name>
    </author>
    <category term="碎碎念" scheme="https://showwhen.top/categories/%E7%A2%8E%E7%A2%8E%E5%BF%B5/"/>
    <category term="博客" scheme="https://showwhen.top/tags/%E5%8D%9A%E5%AE%A2/"/>
    <category term="折腾" scheme="https://showwhen.top/tags/%E6%8A%98%E8%85%BE/"/>
    <content>
      <![CDATA[<p>之前试过全栈方案：Next.js 前端 + FastAPI 后端 + PostgreSQL 数据库，功能很全，但代价也很清楚——一台 24 小时开着的服务器、一个要定期备份的数据库、还有每月固定的开销。</p><p>而我真正的需求其实只有两件事：<strong>写文章、发说说</strong>。</p><span id="more"></span><h2 id="静态博客香在哪"><a href="#静态博客香在哪" class="headerlink" title="静态博客香在哪"></a>静态博客香在哪</h2><ul><li><strong>零成本</strong>：GitHub Pages 免费托管，域名一年几十块，没有别的了</li><li><strong>几乎不会挂</strong>：全站是静态文件走 CDN，没有进程会崩溃</li><li><strong>安全省心</strong>：没有后端就没有可被攻击的接口</li><li><strong>写作纯粹</strong>：打开编辑器，写完 push，几十秒后线上就更新了</li></ul><h2 id="看起来”静态站做不了”的功能，其实都有解"><a href="#看起来”静态站做不了”的功能，其实都有解" class="headerlink" title="看起来”静态站做不了”的功能，其实都有解"></a>看起来”静态站做不了”的功能，其实都有解</h2><table><thead><tr><th>需求</th><th>解法</th></tr></thead><tbody><tr><td>评论</td><td>Giscus：评论存在 GitHub Discussions，免费无服务器</td></tr><tr><td>站内搜索</td><td>构建时生成索引，浏览器端匹配</td></tr><tr><td>说说</td><td>一个 JSON 数据文件 + 一段渲染脚本</td></tr><tr><td>音乐</td><td>纯前端播放器 + mp3 放仓库里</td></tr><tr><td>高颜值</td><td>主题 + CSS 本来就全是前端的事</td></tr></tbody></table><h2 id="下一步"><a href="#下一步" class="headerlink" title="下一步"></a>下一步</h2><p>把内容迁移稳定后，考虑给照片加个图床，再写几篇真正的技术长文。</p><p>如果你也在纠结要不要上服务器，我的建议是：<strong>先静态</strong>。真遇到静态做不了的需求，再迁移也不迟——文章都是 Markdown，走到哪都不丢。</p>]]>
    </content>
    <id>https://showwhen.top/2026/09/26/why-static-blog/</id>
    <link href="https://showwhen.top/2026/09/26/why-static-blog/"/>
    <published>2026-09-26T03:00:00.000Z</published>
    <summary>
      <![CDATA[<p>之前试过全栈方案：Next.js 前端 + FastAPI 后端 + PostgreSQL 数据库，功能很全，但代价也很清楚——一台 24 小时开着的服务器、一个要定期备份的数据库、还有每月固定的开销。</p>
<p>而我真正的需求其实只有两件事：<strong>写文章、发说说</strong>。</p>]]>
    </summary>
    <title>我的博客为什么换成静态的</title>
    <updated>2026-09-25T17:41:09.036Z</updated>
  </entry>
  <entry>
    <author>
      <name>ShowWhen</name>
    </author>
    <category term="碎碎念" scheme="https://showwhen.top/categories/%E7%A2%8E%E7%A2%8E%E5%BF%B5/"/>
    <category term="日常" scheme="https://showwhen.top/tags/%E6%97%A5%E5%B8%B8/"/>
    <content>
      <![CDATA[<p>这是一篇示例文章，用来占位和演示格式。你可以直接删掉它，或者改成自己的第一篇正式文章。</p><p>本站基于 Hexo + Butterfly 主题，毛玻璃卡片、暗色模式、看板娘都已就位。发新文章一条命令：</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">npx hexo new <span class="string">&quot;文章标题&quot;</span></span><br></pre></td></tr></table></figure><span id="more"></span><h2 id="站点功能速览"><a href="#站点功能速览" class="headerlink" title="站点功能速览"></a>站点功能速览</h2><ul><li><strong>文章</strong>：写在 <code>source/_posts/</code>，Markdown 格式</li><li><strong>说说</strong>：编辑 <code>source/moments/index.md</code> 里的 JSON，加一条就是一条说说</li><li><strong>音乐</strong>：mp3 放进 <code>source/music/</code>，在音乐页 JSON 里登记一行</li><li><strong>评论</strong>：仓库上线并开启 Discussions 后，在主题配置回填 Giscus 参数即可启用</li></ul><p>具体写法见另一篇《Markdown 写作快速上手》。祝写作愉快 ✨</p>]]>
    </content>
    <id>https://showwhen.top/2026/09/26/hello-world/</id>
    <link href="https://showwhen.top/2026/09/26/hello-world/"/>
    <published>2026-09-26T01:00:00.000Z</published>
    <summary>
      <![CDATA[<p>这是一篇示例文章，用来占位和演示格式。你可以直接删掉它，或者改成自己的第一篇正式文章。</p>
<p>本站基于 Hexo + Butterfly 主题，毛玻璃卡片、暗色模式、看板娘都已就位。发新文章一条命令：</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">npx hexo new <span class="string">&quot;文章标题&quot;</span></span><br></pre></td></tr></table></figure>]]>
    </summary>
    <title>欢迎来到我的小站</title>
    <updated>2026-09-25T17:41:56.573Z</updated>
  </entry>
  <entry>
    <author>
      <name>ShowWhen</name>
    </author>
    <category term="技术笔记" scheme="https://showwhen.top/categories/%E6%8A%80%E6%9C%AF%E7%AC%94%E8%AE%B0/"/>
    <category term="教程" scheme="https://showwhen.top/tags/%E6%95%99%E7%A8%8B/"/>
    <category term="Markdown" scheme="https://showwhen.top/tags/Markdown/"/>
    <content>
      <![CDATA[<p>新文章就是一条命令的事：</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">npx hexo new <span class="string">&quot;文章标题&quot;</span></span><br></pre></td></tr></table></figure><p>然后在 <code>source/_posts/文章标题.md</code> 里写作。头部信息区（front-matter）长这样：</p><figure class="highlight yaml"><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="meta">---</span></span><br><span class="line"><span class="attr">title:</span> <span class="string">文章标题</span></span><br><span class="line"><span class="attr">date:</span> <span class="number">2026-09-25 20:00:00</span></span><br><span class="line"><span class="attr">tags:</span></span><br><span class="line">  <span class="bullet">-</span> <span class="string">标签一</span></span><br><span class="line"><span class="attr">categories:</span></span><br><span class="line">  <span class="bullet">-</span> <span class="string">分类名</span></span><br><span class="line"><span class="attr">cover:</span> <span class="string">/img/cover-2.svg</span></span><br><span class="line"><span class="meta">---</span></span><br></pre></td></tr></table></figure><span id="more"></span><h2 id="常用格式速查"><a href="#常用格式速查" class="headerlink" title="常用格式速查"></a>常用格式速查</h2><ul><li><code># 标题</code> 到 <code>###### 标题</code>：一到六级</li><li><code>**加粗**</code>、<code>*斜体*</code></li><li><code>`行内代码`</code>、三反引号代码块</li><li><code>- 列表项</code>、<code>1. 有序列表</code></li><li><code>[文字](链接)</code>、<code>![替代文字](图片路径)</code></li><li>正文里插入 <code>&lt;!-- more --&gt;</code>，首页摘要就到此截断</li></ul><h2 id="图片放哪"><a href="#图片放哪" class="headerlink" title="图片放哪"></a>图片放哪</h2><p>两种方式任选：</p><ol><li><strong>通用图</strong>：放到 <code>source/img/</code>，引用写 <code>/img/xxx.png</code></li><li><strong>随文图</strong>：站点已开启资源文件夹（<code>post_asset_folder: true</code>），<code>hexo new</code> 会同步生成同名文件夹，图片丢进去，正文里直接 <code>![图](&#123;% asset_path %&#125;xxx.png)</code> 引用</li></ol><h2 id="发一条说说"><a href="#发一条说说" class="headerlink" title="发一条说说"></a>发一条说说</h2><p>打开 <code>source/moments/index.md</code>，在中间那段 JSON 数组的<strong>最前面</strong>加一条：</p><figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span> <span class="attr">&quot;time&quot;</span><span class="punctuation">:</span> <span class="string">&quot;2026-09-25 21:12&quot;</span><span class="punctuation">,</span> <span class="attr">&quot;text&quot;</span><span class="punctuation">:</span> <span class="string">&quot;今天阳光很好。&quot;</span> <span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure><p>想配图就多加一个字段：<code>&quot;img&quot;: &quot;/img/xxx.png&quot;</code>。保存、push，完事。</p>]]>
    </content>
    <id>https://showwhen.top/2026/09/25/markdown-quick-start/</id>
    <link href="https://showwhen.top/2026/09/25/markdown-quick-start/"/>
    <published>2026-09-25T12:00:00.000Z</published>
    <summary>
      <![CDATA[<p>新文章就是一条命令的事：</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">npx hexo new <span class="string">&quot;文章标题&quot;</span></span><br></pre></td></tr></table></figure>

<p>然后在 <code>source/_posts/文章标题.md</code> 里写作。头部信息区（front-matter）长这样：</p>
<figure class="highlight yaml"><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="meta">---</span></span><br><span class="line"><span class="attr">title:</span> <span class="string">文章标题</span></span><br><span class="line"><span class="attr">date:</span> <span class="number">2026-09-25 20:00:00</span></span><br><span class="line"><span class="attr">tags:</span></span><br><span class="line">  <span class="bullet">-</span> <span class="string">标签一</span></span><br><span class="line"><span class="attr">categories:</span></span><br><span class="line">  <span class="bullet">-</span> <span class="string">分类名</span></span><br><span class="line"><span class="attr">cover:</span> <span class="string">/img/cover-2.svg</span></span><br><span class="line"><span class="meta">---</span></span><br></pre></td></tr></table></figure>]]>
    </summary>
    <title>Markdown 写作快速上手</title>
    <updated>2026-09-25T17:41:09.212Z</updated>
  </entry>
</feed>
