<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://qiushuai.vip/feed.xml" rel="self" type="application/atom+xml" /><link href="https://qiushuai.vip/" rel="alternate" type="text/html" hreflang="zh-CN" /><updated>2026-11-09T18:57:32+08:00</updated><id>https://qiushuai.vip/feed.xml</id><title type="html">我的博客</title><subtitle>这是我的个人博客，用来记录学习、工作与生活中的思考。 在这里写下读书笔记、技术总结和一些不成体系的想法。</subtitle><author><name>你的名字</name><email>hello@example.com</email></author><entry><title type="html">从零把这个博客放到互联网上：GitHub Pages + 自定义域名</title><link href="https://qiushuai.vip/posts/deploy-to-github-pages/" rel="alternate" type="text/html" title="从零把这个博客放到互联网上：GitHub Pages + 自定义域名" /><published>2026-11-08T21:00:00+08:00</published><updated>2026-11-08T21:00:00+08:00</updated><id>https://qiushuai.vip/posts/deploy-to-github-pages</id><content type="html" xml:base="https://qiushuai.vip/posts/deploy-to-github-pages/"><![CDATA[<p>这篇是给”已经拿到域名、但还没上线”的自己写的操作手册。整体分五步，每一步都有验证方法，<strong>上一步没验证通过，不要急着做下一步</strong>。</p>

<h2 id="全貌三条腿">全貌：三条腿</h2>

<p>先建立一个正确的心理模型：</p>

<ol>
  <li><strong>代码仓库</strong>：文章和模板存在 GitHub 的仓库里</li>
  <li><strong>构建服务</strong>：GitHub Pages 把仓库里的 Jekyll 源码编译成静态 HTML</li>
  <li><strong>域名解析</strong>：把 <code class="language-plaintext highlighter-rouge">你的域名</code> 指向 GitHub Pages 的服务器</li>
</ol>

<p>三者缺一不可。常见故障大多是”仓库推了但 Pages 没开”或者”Pages 开了但 DNS 没生效”。</p>

<blockquote>
  <p><strong>前提</strong>：本文假设你把站点放在<strong>用户主页仓库</strong>里，仓库名必须是 <code class="language-plaintext highlighter-rouge">你的用户名.github.io</code>。这样博客直接占用根路径，域名配置最简单。</p>
</blockquote>

<h2 id="第一步把文件推上-github">第一步：把文件推上 GitHub</h2>

<p>先在 GitHub 网页上新建一个<strong>空仓库</strong>，名字填 <code class="language-plaintext highlighter-rouge">你的用户名.github.io</code>，<strong>不要</strong>勾选”添加 README”。然后在本机执行：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd </span>你的博客目录
git init
git add <span class="nb">.</span>
git commit <span class="nt">-m</span> <span class="s2">"初始化博客"</span>
git branch <span class="nt">-M</span> main
git remote add origin https://github.com/你的用户名/你的用户名.github.io.git
git push <span class="nt">-u</span> origin main
</code></pre></div></div>

<p>验证：刷新仓库页面，能看到 <code class="language-plaintext highlighter-rouge">_config.yml</code>、<code class="language-plaintext highlighter-rouge">_posts</code>、<code class="language-plaintext highlighter-rouge">index.html</code> 这些文件。</p>

<h2 id="第二步开启-pages">第二步：开启 Pages</h2>

<p>进入仓库的 <strong>Settings → Pages</strong>：</p>

<ol>
  <li><strong>Source</strong> 选择 <code class="language-plaintext highlighter-rouge">Deploy from a branch</code></li>
  <li><strong>Branch</strong> 选择 <code class="language-plaintext highlighter-rouge">main</code>，目录选 <code class="language-plaintext highlighter-rouge">/ (root)</code></li>
  <li>点击 <strong>Save</strong></li>
</ol>

<p>等 1~3 分钟，Pages 页面顶部会出现 <code class="language-plaintext highlighter-rouge">Your site is live at https://你的用户名.github.io/</code>。</p>

<p>这时先用 GitHub 给的地址访问一次。<strong>这一步能打开，说明仓库和构建没问题</strong>，后面再折腾域名才有意义。</p>

<blockquote>
  <p>如果 5 分钟还没好，去 <strong>Actions</strong> 标签页看 <code class="language-plaintext highlighter-rouge">pages build and deployment</code> 的状态；红色叉号点进去看日志，最常见的原因是 <code class="language-plaintext highlighter-rouge">_config.yml</code> 语法错误。</p>
</blockquote>

<h2 id="第三步配置-dns">第三步：配置 DNS</h2>

<p>先明确你要用哪种地址。两种都配是最稳的做法：</p>

<h3 id="方案-a主域名-examplecom推荐">方案 A：主域名 <code class="language-plaintext highlighter-rouge">example.com</code>（推荐）</h3>

<p>在域名服务商的 DNS 管理页面，添加 4 条 <strong>A 记录</strong>，主机记录都填 <code class="language-plaintext highlighter-rouge">@</code>：</p>

<table>
  <thead>
    <tr>
      <th>类型</th>
      <th>主机记录</th>
      <th>记录值</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>A</td>
      <td>@</td>
      <td>185.199.108.153</td>
    </tr>
    <tr>
      <td>A</td>
      <td>@</td>
      <td>185.199.109.153</td>
    </tr>
    <tr>
      <td>A</td>
      <td>@</td>
      <td>185.199.110.153</td>
    </tr>
    <tr>
      <td>A</td>
      <td>@</td>
      <td>185.199.111.153</td>
    </tr>
  </tbody>
</table>

<h3 id="方案-b子域名-wwwexamplecom-或-blogexamplecom">方案 B：子域名 <code class="language-plaintext highlighter-rouge">www.example.com</code> 或 <code class="language-plaintext highlighter-rouge">blog.example.com</code></h3>

<p>添加 1 条 <strong>CNAME 记录</strong>：</p>

<table>
  <thead>
    <tr>
      <th>类型</th>
      <th>主机记录</th>
      <th>记录值</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>CNAME</td>
      <td>www</td>
      <td>你的用户名.github.io</td>
    </tr>
  </tbody>
</table>

<blockquote>
  <p><strong>注意</strong>：CNAME 的记录值只写到 <code class="language-plaintext highlighter-rouge">你的用户名.github.io</code>，末尾不要加 <code class="language-plaintext highlighter-rouge">.</code>，也不要加 <code class="language-plaintext highlighter-rouge">https://</code>。</p>
</blockquote>

<h3 id="顺手加一条-www-跳转">顺手加一条 www 跳转</h3>

<p>如果你用主域名，通常会再加一条 <code class="language-plaintext highlighter-rouge">www</code> 的 CNAME 指向 <code class="language-plaintext highlighter-rouge">你的用户名.github.io</code>，然后在 Pages 设置里勾选强制跳转。GitHub 会自动把 <code class="language-plaintext highlighter-rouge">www.example.com</code> 301 到 <code class="language-plaintext highlighter-rouge">example.com</code>（或反过来，取决于你在 Pages 里填的主域名）。</p>

<p>配置完成后，用命令检查是否生效（DNS 一般 10 分钟到 1 小时）：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>nslookup example.com
nslookup www.example.com
</code></pre></div></div>

<h2 id="第四步绑定域名">第四步：绑定域名</h2>

<ol>
  <li>仓库根目录新建一个文件 <code class="language-plaintext highlighter-rouge">CNAME</code>（没有后缀），<strong>只写一行</strong>：</li>
</ol>

<div class="language-text highlighter-rouge"><div class="highlight"><pre class="highlight"><code>example.com
</code></pre></div></div>

<ol>
  <li>回到 <strong>Settings → Pages → Custom domain</strong>，填 <code class="language-plaintext highlighter-rouge">example.com</code>，点 <strong>Save</strong></li>
</ol>

<p>保存后，GitHub 会自动把 <code class="language-plaintext highlighter-rouge">CNAME</code> 文件改写一遍（所以你本地看到的可能被覆盖，这是正常的）。</p>

<ol>
  <li>等 DNS 检查通过，勾选 <strong>Enforce HTTPS</strong></li>
</ol>

<p>验证顺序：</p>

<ul class="task-list">
  <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" /><code class="language-plaintext highlighter-rouge">http://example.com</code> 能打开</li>
  <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" /><code class="language-plaintext highlighter-rouge">https://example.com</code> 能打开，且地址栏有小锁</li>
  <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" /><code class="language-plaintext highlighter-rouge">https://www.example.com</code> 会跳转到主站</li>
  <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" />手机 4G 网络也能打开（排除本地缓存干扰）</li>
</ul>

<h2 id="第五步把域名写进-_configyml">第五步：把域名写进 <code class="language-plaintext highlighter-rouge">_config.yml</code></h2>

<p>这一步最容易被忘，忘了也不会报错，但分享到社交平台时缩略图会挂掉。</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">url</span><span class="pi">:</span> <span class="s2">"</span><span class="s">https://example.com"</span>
<span class="na">baseurl</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
</code></pre></div></div>

<p>改完提交：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git add _config.yml
git commit <span class="nt">-m</span> <span class="s2">"配置正式域名"</span>
git push
</code></pre></div></div>

<h2 id="常见问题排查">常见问题排查</h2>

<h3 id="打开是-404">打开是 404</h3>

<ul>
  <li>仓库是不是叫 <code class="language-plaintext highlighter-rouge">用户名.github.io</code>？拼写是否完全一致？</li>
  <li>Pages 的 Source 是不是选了 <code class="language-plaintext highlighter-rouge">main</code> 分支的 <code class="language-plaintext highlighter-rouge">/ (root)</code>？</li>
  <li>仓库里有没有 <code class="language-plaintext highlighter-rouge">index.html</code> 或 <code class="language-plaintext highlighter-rouge">index.md</code>？</li>
</ul>

<h3 id="打开显示的是-readme">打开显示的是 README</h3>

<p>Jekyll 会把仓库根目录的 <code class="language-plaintext highlighter-rouge">README.md</code> 当成首页，除非你已经有了 <code class="language-plaintext highlighter-rouge">index.html</code>。本站就带了 <code class="language-plaintext highlighter-rouge">index.html</code>，如果它不在，检查是不是被误删了。</p>

<h3 id="域名打不开github-地址正常">域名打不开，GitHub 地址正常</h3>

<p>几乎都是 DNS 问题。用 <code class="language-plaintext highlighter-rouge">nslookup</code> 看解析结果对不对；如果服务商支持，把 TTL 调小（比如 600 秒）再等一会儿。</p>

<h3 id="提示-domain-is-not-properly-formatted">提示 “Domain is not properly formatted”</h3>

<p><code class="language-plaintext highlighter-rouge">CNAME</code> 文件里只能有一行纯域名，不能有 <code class="language-plaintext highlighter-rouge">https://</code>、不能有路径、不能有逗号。</p>

<h3 id="https-选项是灰的">HTTPS 选项是灰的</h3>

<p>说明 GitHub 还没完成域名验证，通常再等几十分钟即可。如果超过 24 小时，检查 DNS 里有没有多余的 AAAA 记录或冲突的 CNAME。</p>

<h2 id="上线之后">上线之后</h2>

<ul>
  <li>每推送一次 <code class="language-plaintext highlighter-rouge">main</code> 分支，GitHub 会自动重新构建，通常 1 分钟内生效</li>
  <li>在 <strong>Settings → Pages</strong> 页面可以看到每次构建的状态</li>
  <li>提交文章前建议先本地预览（见 <code class="language-plaintext highlighter-rouge">docs/部署指南.md</code> 的”本地预览”一节）</li>
</ul>

<p>写完这些，网站就算是真正属于你了。</p>]]></content><author><name>你的名字</name><email>hello@example.com</email></author><category term="指南" /><category term="GitHub Pages" /><category term="Jekyll" /><category term="DNS" /><category term="部署" /><summary type="html"><![CDATA[把仓库推到 GitHub、开通 Pages、配置 DNS、绑定域名、开启 HTTPS，一步一步走完，中途的坑和排查方法也一并记下。]]></summary></entry><entry><title type="html">欢迎来到我的博客：这里是什么，以及怎么开始读</title><link href="https://qiushuai.vip/posts/hello-world/" rel="alternate" type="text/html" title="欢迎来到我的博客：这里是什么，以及怎么开始读" /><published>2026-11-08T09:00:00+08:00</published><updated>2026-11-08T09:00:00+08:00</updated><id>https://qiushuai.vip/posts/hello-world</id><content type="html" xml:base="https://qiushuai.vip/posts/hello-world/"><![CDATA[<p>这是这个博客的第一篇文章。按惯例，开场白应该交代三件事：<strong>这是谁</strong>、<strong>这里写什么</strong>、<strong>你为什么要看</strong>。</p>

<h2 id="为什么又开一个博客">为什么又开一个博客</h2>

<p>写作这件事，我断断续续做过很多次。最早是在某个已经关停的平台上，后来是朋友圈的长文，再后来是笔记软件里几百条永远发不出去的草稿。</p>

<p>我后来意识到，问题不在于”写不出来”，而在于”没有读者”——没有读者，写作就变成了自我感动，句子会越来越松，观点会越来越含糊。所以这一次，我决定把笔记搬到公开的地方：</p>

<ul>
  <li>有网址，可以随手发给朋友</li>
  <li>有目录，能看见自己写过什么</li>
  <li>有 RSS，愿意订阅的人不必天天来看</li>
</ul>

<p>更重要的是，<strong>公开意味着要负责任</strong>。一句话写出去，至少要能自圆其说。</p>

<h2 id="这里会写什么">这里会写什么</h2>

<p>大致是三块内容：</p>

<ol>
  <li><strong>技术笔记</strong>：踩过的坑、读过的源码、用过的工具。尽量写成可以照着操作的样子，而不是只留下结论。</li>
  <li><strong>读书笔记</strong>：书里让我改变想法的段落，以及我为什么不同意作者。</li>
  <li><strong>生活随笔</strong>：跑步、拍照、做饭，以及一些不成体系的胡思乱想。</li>
</ol>

<p>我不会保证更新频率，但会保证每一篇都值得发出来——至少对写它的我来说是如此。</p>

<h2 id="你可以怎么读">你可以怎么读</h2>

<ul>
  <li>想按主题看，去 <a href="/categories/">分类</a> 页面</li>
  <li>想按时间翻，去 <a href="/archive/">归档</a> 页面</li>
  <li>只关心某几个词，用 <a href="/search/">搜索</a></li>
  <li>想第一时间收到更新，订阅 <a href="/feed.xml">RSS</a></li>
</ul>

<h2 id="关于技术实现">关于技术实现</h2>

<p>这个网站是用 <strong>Jekyll</strong> 生成、托管在 <strong>GitHub Pages</strong> 上的静态站点，没有任何后端和数据库。文章用 Markdown 写，提交到 GitHub 后自动构建发布。</p>

<p>顺便说一句，如果你也想搭一个自己的博客，我把完整的部署步骤写在了另一篇文章里：<a href="/posts/deploy-to-github-pages/">从零把这个博客放到互联网上</a>。</p>

<blockquote>
  <p>最后，谢谢你来。如果某篇文章恰好帮到了你，或者你不同意我的某个观点，欢迎写信给我。被认真地反驳，是一件很幸运的事。</p>
</blockquote>]]></content><author><name>你的名字</name><email>hello@example.com</email></author><category term="随笔" /><category term="开场白" /><category term="自我介绍" /><category term="博客" /><summary type="html"><![CDATA[这是新站的第一篇文章。说说这个博客为什么存在、里面会写些什么，以及你可以在哪些地方找到我。]]></summary></entry><entry><title type="html">Markdown 写作速查：这个博客支持的所有排版</title><link href="https://qiushuai.vip/posts/markdown-guide/" rel="alternate" type="text/html" title="Markdown 写作速查：这个博客支持的所有排版" /><published>2026-11-08T08:00:00+08:00</published><updated>2026-11-08T08:00:00+08:00</updated><id>https://qiushuai.vip/posts/markdown-guide</id><content type="html" xml:base="https://qiushuai.vip/posts/markdown-guide/"><![CDATA[<p>这篇文章是给未来的自己（和偶然点进来的你）准备的速查表：本站支持哪些写法，每一种长什么样。</p>

<p>想写新文章时，建议直接复制这个文件的框架，改掉开头的配置和正文即可。</p>

<h2 id="标题与段落">标题与段落</h2>

<p>正文用 <code class="language-plaintext highlighter-rouge">##</code> 作为一级小标题，<code class="language-plaintext highlighter-rouge">###</code> 作为二级小标题。右侧的目录会自动抓取它们，所以<strong>别跳级</strong>（比如从 <code class="language-plaintext highlighter-rouge">##</code> 直接到 <code class="language-plaintext highlighter-rouge">####</code>）。</p>

<p>段落之间空一行。中文排版上，中英文之间、数字与汉字之间会自动保留视觉间距，不需要手动敲空格。</p>

<h2 id="强调与链接">强调与链接</h2>

<ul>
  <li><strong>加粗</strong> 用两个星号</li>
  <li><em>斜体</em> 用一个星号</li>
  <li><del>删除线</del> 用两个波浪号</li>
  <li><code class="language-plaintext highlighter-rouge">行内代码</code> 用反引号</li>
  <li><a href="https://example.com">普通链接</a> 用方括号加圆括号</li>
</ul>

<p>链接会在新窗口打开（站外链接由脚本自动处理），站内链接直接用相对地址即可。</p>

<h2 id="列表">列表</h2>

<p>无序列表用 <code class="language-plaintext highlighter-rouge">-</code>：</p>

<ul>
  <li>第一项</li>
  <li>第二项
    <ul>
      <li>缩进两个空格表示子项</li>
      <li>再一层也可以</li>
    </ul>
  </li>
  <li>第三项</li>
</ul>

<p>有序列表用数字：</p>

<ol>
  <li>先读需求</li>
  <li>再写代码</li>
  <li>最后写文档</li>
</ol>

<h2 id="引用">引用</h2>

<blockquote>
  <p>设计不是让东西好看，而是让东西变得更好用。</p>

  <p>—— 某个我记不清名字的设计师</p>
</blockquote>

<p>引用可以有多段，用空行加 <code class="language-plaintext highlighter-rouge">&gt;</code> 分隔即可。</p>

<h2 id="代码">代码</h2>

<p>行内代码：执行 <code class="language-plaintext highlighter-rouge">bundle exec jekyll serve</code> 启动本地预览。</p>

<p>代码块需要标注语言，这样才有语法高亮：</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># 安装依赖并启动本地服务</span>
bundle <span class="nb">install
</span>bundle <span class="nb">exec </span>jekyll serve <span class="nt">--livereload</span>
</code></pre></div></div>

<div class="language-javascript highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// 计算阅读时间的小函数</span>
<span class="kd">function</span> <span class="nx">readingMinutes</span><span class="p">(</span><span class="nx">words</span><span class="p">,</span> <span class="nx">wpm</span> <span class="o">=</span> <span class="mi">300</span><span class="p">)</span> <span class="p">{</span>
  <span class="k">return</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">max</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">ceil</span><span class="p">(</span><span class="nx">words</span> <span class="o">/</span> <span class="nx">wpm</span><span class="p">));</span>
<span class="p">}</span>

<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="nx">readingMinutes</span><span class="p">(</span><span class="mi">1500</span><span class="p">));</span> <span class="c1">// 5</span>
</code></pre></div></div>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># 统计文章字数
</span><span class="k">def</span> <span class="nf">word_count</span><span class="p">(</span><span class="n">text</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span>
    <span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="n">text</span><span class="p">.</span><span class="n">replace</span><span class="p">(</span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> <span class="s">""</span><span class="p">).</span><span class="n">strip</span><span class="p">())</span>
</code></pre></div></div>

<p>代码块右上角有一个”复制”按钮，点一下就能拿走整段代码。</p>

<h2 id="表格">表格</h2>

<table>
  <thead>
    <tr>
      <th>项目</th>
      <th>说明</th>
      <th style="text-align: center">是否必填</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">title</code></td>
      <td>文章标题</td>
      <td style="text-align: center">是</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">date</code></td>
      <td>发布日期</td>
      <td style="text-align: center">是</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">categories</code></td>
      <td>分类，一个或多个</td>
      <td style="text-align: center">否</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">tags</code></td>
      <td>标签，用于检索</td>
      <td style="text-align: center">否</td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">cover</code></td>
      <td>封面图路径</td>
      <td style="text-align: center">否</td>
    </tr>
  </tbody>
</table>

<p>列的对齐方式由表头分隔行里的冒号决定，<code class="language-plaintext highlighter-rouge">:---:</code> 表示居中。</p>

<h2 id="图片">图片</h2>

<p>图片放在 <code class="language-plaintext highlighter-rouge">assets/images/posts/</code> 目录下，然后用标准的 Markdown 语法引用：</p>

<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">![</span><span class="nv">图片说明</span><span class="p">](</span><span class="sx">/assets/images/posts/你的图片.jpg</span><span class="p">)</span>
</code></pre></div></div>

<p>想加图注，可以用 HTML 的 <code class="language-plaintext highlighter-rouge">figure</code> 标签：</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;figure&gt;</span>
  <span class="nt">&lt;img</span> <span class="na">src=</span><span class="s">"/assets/images/posts/你的图片.jpg"</span> <span class="na">alt=</span><span class="s">"说明"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;figcaption&gt;</span>图片下方的小字说明<span class="nt">&lt;/figcaption&gt;</span>
<span class="nt">&lt;/figure&gt;</span>
</code></pre></div></div>

<p>点击正文里的图片可以放大查看。</p>

<h2 id="分割线">分割线</h2>

<p>三个减号就是一条分割线：</p>

<hr />

<h2 id="提示框">提示框</h2>

<p>用引用块加粗开头，可以做出提示框的效果：</p>

<blockquote>
  <p><strong>提示</strong>：文章里的所有内部链接都建议用相对路径（以 <code class="language-plaintext highlighter-rouge">/</code> 开头），这样以后换域名也不会失效。</p>
</blockquote>

<h2 id="需要避免的写法">需要避免的写法</h2>

<ul>
  <li>❌ 不要用一级标题 <code class="language-plaintext highlighter-rouge">#</code>，它会和文章标题打架</li>
  <li>❌ 不要直接写两对花括号连起来的模板语法，Jekyll 会尝试解析它（需要展示时用 <code class="language-plaintext highlighter-rouge">&amp;#123;&amp;#123;</code> 转义）</li>
  <li>❌ 不要手动给标题加锚点，脚本会自动生成</li>
  <li>❌ 图片不要超过 500KB，最好先压缩</li>
</ul>

<h2 id="最后">最后</h2>

<p>把这篇文章的源码复制一份，重命名为 <code class="language-plaintext highlighter-rouge">2026-11-10-你的文章标题.md</code>，改掉开头的 <code class="language-plaintext highlighter-rouge">title</code>、<code class="language-plaintext highlighter-rouge">date</code>、<code class="language-plaintext highlighter-rouge">description</code>，就可以开始写了。</p>

<p>更多细节见仓库里的 <code class="language-plaintext highlighter-rouge">docs/写文章指南.md</code>。</p>]]></content><author><name>你的名字</name><email>hello@example.com</email></author><category term="指南" /><category term="Markdown" /><category term="写作" /><category term="模板" /><summary type="html"><![CDATA[一篇可以直接当模板用的文章，演示标题、列表、表格、代码、引用、图片等全部写法。想写新文章时，复制它就行。]]></summary></entry></feed>