<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>澄屿</title><link>https://example.com/</link><description>Astro 博客模板</description><item><title>开始使用澄屿</title><link>https://example.com/articles/getting-started/</link><guid>https://example.com/articles/getting-started/</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><description>安装依赖、启动本地网站，修改站名、作者与部署地址。
&lt;p&gt;下载模板后，在包含 &lt;code&gt;package.json&lt;/code&gt; 的目录打开终端。下列命令都在该目录执行。&lt;/p&gt;
&lt;h2 id=&quot;检查本机环境&quot;&gt;检查本机环境&lt;/h2&gt;
&lt;p&gt;项目要求 Node.js 24 或更高版本，锁定的包管理器为 pnpm 11.25.0；当前示例在 Node.js 24 环境验证。先检查版本：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;终端命令&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;sh&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 终端命令 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;sh 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;node &lt;span class=&quot;token-string&quot;&gt;--version&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;--version&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;如果终端提示找不到命令，先安装对应运行环境。保留项目的 &lt;code&gt;pnpm-lock.yaml&lt;/code&gt;，这样安装使用同一套依赖版本。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;安装与启动&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;sh&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 安装与启动 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;sh 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;token-string&quot;&gt;--frozen-lockfile&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;dev&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;打开终端显示的地址，默认是 &lt;code&gt;http://127.0.0.1:4321/&lt;/code&gt;。这是本机开发服务，不是已经上线的站点。若该端口正被另一份预览占用，可以先停止它，或者执行 &lt;code&gt;pnpm dev --port 4322&lt;/code&gt;。&lt;/p&gt;
&lt;h2 id=&quot;修改站名和作者&quot;&gt;修改站名和作者&lt;/h2&gt;
&lt;p&gt;打开 &lt;code&gt;site.config.ts&lt;/code&gt;，在现有对象中修改下列字段，其他配置保留。下面是局部修改示意，不要用它替换整个文件：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;site.config.ts · 局部示意&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 site.config.ts · 局部示意 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;typescript 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line emphasis&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;title: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;我的记录&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;subtitle: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;技术笔记与日常记录&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line emphasis&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;author: {&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  name: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;你的名字&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  bio: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;用自己的话介绍这里。&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  tags: [&lt;span class=&quot;token-string&quot;&gt;&amp;#39;写作&amp;#39;&lt;/span&gt;, &lt;span class=&quot;token-string&quot;&gt;&amp;#39;阅读&amp;#39;&lt;/span&gt;],&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  github: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  email: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;},&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;保存后检查页头、首页、关于页和文章署名。邮箱与 GitHub 留空时相应入口隐藏。首页首屏、生活切片与关于页介绍分别由 &lt;code&gt;hero&lt;/code&gt;、&lt;code&gt;life&lt;/code&gt;、&lt;code&gt;about&lt;/code&gt; 配置；修改图片时同时更新替代文字和来源提示。&lt;/p&gt;
&lt;h2 id=&quot;设置部署地址&quot;&gt;设置部署地址&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;site&lt;/code&gt; 是公开网站的完整地址，&lt;code&gt;base&lt;/code&gt; 是部署路径。它们影响规范地址、RSS、站点地图和资源链接。下面的域名只是示意，发布前替换成自己的地址：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;地址设置 · 局部示意&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 地址设置 · 局部示意 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;typescript 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;site: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;https://your-domain.example&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;base: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;/&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;如果网站将放在某个 &lt;code&gt;/blog/&lt;/code&gt; 子目录，使用 &lt;code&gt;base: &apos;/blog/&apos;&lt;/code&gt;，构建与托管位置保持一致。本机仍打开终端地址，无需把 &lt;code&gt;site&lt;/code&gt; 改成 127.0.0.1。&lt;/p&gt;
&lt;h2 id=&quot;开发预览和产物预览&quot;&gt;开发预览和产物预览&lt;/h2&gt;
&lt;div class=&quot;table-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;表格，可横向滚动&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;命令&lt;/th&gt;
&lt;th&gt;适合做什么&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pnpm dev&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;修改正文、配置和组件，查看开发效果&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pnpm check&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;检查内容字段、引用和 Astro 类型&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pnpm build&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;生成并校验完整网站&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pnpm preview&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;查看已经构建好的网站&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;需要核对完整全文搜索时，先在开发终端按 Ctrl+C，再执行：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;检查正式产物&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;sh&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 检查正式产物 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;sh 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;check&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;build&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;preview&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;浏览首页、文章、资料和搜索。预览服务读取已有 &lt;code&gt;dist&lt;/code&gt;，此时修改源文件需要重新构建才会出现变化。构建成功只更新本机产物，不会自动上传 GitHub 或部署。&lt;/p&gt;
&lt;h2 id=&quot;新建文章&quot;&gt;新建文章&lt;/h2&gt;
&lt;p&gt;模板没有预装 &lt;code&gt;first-note&lt;/code&gt; 这个 ID，你可以在停止预览后运行：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;新建自己的草稿&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;sh&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 新建自己的草稿 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;sh 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token-string&quot;&gt;article&lt;/span&gt; &lt;span class=&quot;token-string&quot;&gt;first-note&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;新文章默认为私人草稿。接着阅读&lt;a href=&quot;/articles/source/&quot;&gt;新建、预览与发布文章&lt;/a&gt;，使用本机草稿模式查看它。&lt;/p&gt;</description></item><item><title>新建、预览与发布文章</title><link>https://example.com/articles/source/</link><guid>https://example.com/articles/source/</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><description>从第一份私人草稿开始，在本机预览，再决定公开全文、只公开开头或仅供站主阅读。
&lt;h2 id=&quot;新建草稿&quot;&gt;新建草稿&lt;/h2&gt;
&lt;p&gt;在模板根目录运行以下命令。如果已经使用过 &lt;code&gt;first-note&lt;/code&gt;，请换一个全库唯一的 ID。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;新建文章&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;sh&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 新建文章 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;sh 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token-string&quot;&gt;article&lt;/span&gt; &lt;span class=&quot;token-string&quot;&gt;first-note&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;工具生成 &lt;code&gt;knowledge/articles/first-note/index.md&lt;/code&gt;，初始状态为 private/draft，不进入公开列表。&lt;/p&gt;
&lt;h2 id=&quot;文章字段&quot;&gt;文章字段&lt;/h2&gt;
&lt;p&gt;下面是一份可以使用的完整源文件。日期是示例编写日；创建自己的文章时换成实际日期。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;knowledge/articles/first-note/index.md&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 knowledge/articles/first-note/index.md 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;---&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;id&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;first-note&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;type&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;article&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;title&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;我的第一篇记录&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;date&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;2026-11-06&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;status&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;draft&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;visibility&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;summary&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;记录一次具体问题，以及我怎样找到答案。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;category&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;学习记录&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;tags&lt;/span&gt;: [&lt;span class=&quot;token-string&quot;&gt;学习&lt;/span&gt;, &lt;span class=&quot;token-string&quot;&gt;实践&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;cover&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;code&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;---&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;## 我遇到了什么&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;先用自己的话说明问题，再补上过程、依据和下一步。&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;code-caption&quot;&gt;正文放在第二条分隔线之后；必需字段不要省略。&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;title&lt;/code&gt; 是页面主标题，&lt;code&gt;summary&lt;/code&gt; 帮助列表中的读者选择文章。正文建议从 &lt;code&gt;##&lt;/code&gt; 开始。&lt;code&gt;id&lt;/code&gt; 决定永久链接，不跟随标题变化；本例的地址是 &lt;code&gt;/articles/first-note/&lt;/code&gt;。&lt;/p&gt;
&lt;p&gt;&lt;code&gt;category&lt;/code&gt; 填一个分类，&lt;code&gt;tags&lt;/code&gt; 可填多个标签。&lt;code&gt;cover&lt;/code&gt; 可填预设名，也可填放在 &lt;code&gt;public/art/covers/&lt;/code&gt; 下的公开图片文件名。正文配图和下载附件放在文章文件旁，用相对路径引用。&lt;/p&gt;
&lt;h2 id=&quot;在本机阅读私人草稿&quot;&gt;在本机阅读私人草稿&lt;/h2&gt;
&lt;p&gt;先停止已启动的开发服务，再在 PowerShell 中执行：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;仅本机草稿预览&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;powershell&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 仅本机草稿预览 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;powershell 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;$env:CLARISLET_DRAFTS&lt;span class=&quot;token-key&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token-string&quot;&gt;&amp;#39;1&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm dev&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;打开终端地址，再访问 &lt;code&gt;/articles/first-note/&lt;/code&gt;。你应该看到自己的标题和正文，以及页头的本机草稿提示。保存文件后等待重新编译，刷新检查修改。&lt;/p&gt;
&lt;p&gt;结束时 Ctrl+C，执行 &lt;code&gt;Remove-Item Env:CLARISLET_DRAFTS&lt;/code&gt;。这是本机开发预览，草稿不会写进正式 dist。&lt;/p&gt;
&lt;p&gt;可下载本文附带的&lt;a href=&quot;/media/da4bd810eb081cdb879c.txt&quot;&gt;写作检查表&lt;/a&gt;。正文里的图片和链接写法见 &lt;a href=&quot;/articles/markdown-guide/&quot;&gt;Markdown 排版与代码示例&lt;/a&gt;。&lt;/p&gt;
&lt;h2 id=&quot;选择公开范围&quot;&gt;选择公开范围&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;status: draft&lt;/code&gt; 留给本机预览。正式构建只收录 &lt;code&gt;status: ready&lt;/code&gt; 且日期不晚于构建当天（UTC）的文章。准备好后，再用 &lt;code&gt;visibility&lt;/code&gt; 决定读者能看到多少。&lt;/p&gt;
&lt;div class=&quot;table-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;表格，可横向滚动&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;公开范围&lt;/th&gt;
&lt;th&gt;匿名读者看到什么&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;public&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;全文和正文引用的附件&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;preview&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;标题、简介等公开信息，以及 &lt;code&gt;ratio&lt;/code&gt; 允许的正文开头&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;private&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;公开列表、计数和搜索均无此条目&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;只有 &lt;code&gt;preview&lt;/code&gt; 需要填写 &lt;code&gt;ratio&lt;/code&gt;，取值从 0 到小于 1。0 只显示公开信息。0.05 和 0.1 按可见文字预算保留完整的开头段落或其他内容块，实际显示量取决于块长。可以打开&lt;a href=&quot;/articles/english/&quot;&gt;阅读练习（10% 预览示例）&lt;/a&gt;看页面效果。标题、摘要和标签应当先确认可以公开。公开页面只携带可见正文所引用的附件。&lt;/p&gt;
&lt;p&gt;可选站主模式允许站主登录后阅读已发布的私人内容和预览全文。真实私人稿件应放在私人仓库或仓库外的内容目录。公开 Git 仓库里的 Markdown 可以被直接阅读。&lt;/p&gt;
&lt;h2 id=&quot;检查并发布&quot;&gt;检查并发布&lt;/h2&gt;
&lt;p&gt;若要公开第一篇文章，把 &lt;code&gt;first-note&lt;/code&gt; 改为 &lt;code&gt;status: ready&lt;/code&gt; 和 &lt;code&gt;visibility: public&lt;/code&gt;。核对标题、摘要、图片替代文字和下载链接，再生成正式产物。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;检查与正式预览&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;sh&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 检查与正式预览 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;sh 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;check&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;build&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;preview&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;在预览地址打开文章列表和 &lt;code&gt;/articles/first-note/&lt;/code&gt;，确认发布结果。部署到托管服务前，按&lt;a href=&quot;/articles/publishing-guide/&quot;&gt;构建、部署与更新&lt;/a&gt;的检查表走一遍。&lt;/p&gt;</description></item><item><title>澄屿简介</title><link>https://example.com/articles/welcome/</link><guid>https://example.com/articles/welcome/</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><description>模板的栏目、内容文件和基本用法。
&lt;p&gt;澄屿是一套基于 Astro 的博客模板。文章保存在 Markdown 文件中，专题和资料书通过 ID 引用正文。构建后得到可以部署的静态页面。&lt;/p&gt;
&lt;p&gt;本站是模板演示。文章介绍使用方法，随记和项目展示其他内容类型；Lorem Ipsum 是示例署名，插画也可以替换。&lt;/p&gt;
&lt;h2 id=&quot;栏目&quot;&gt;栏目&lt;/h2&gt;
&lt;div class=&quot;table-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;表格，可横向滚动&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;栏目&lt;/th&gt;
&lt;th&gt;用途&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;文章&lt;/td&gt;
&lt;td&gt;按发布时间浏览正文&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;专题&lt;/td&gt;
&lt;td&gt;按指定顺序阅读一组文章&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;资料&lt;/td&gt;
&lt;td&gt;通过书籍和多级目录查阅资料&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;随记&lt;/td&gt;
&lt;td&gt;发布短文字、图片或链接&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;项目&lt;/td&gt;
&lt;td&gt;介绍作品的用途、功能和相关地址&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;归档&lt;/td&gt;
&lt;td&gt;按年份和月份查找文章&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;专题和资料书可以引用同一篇文章。修改正文后，各入口显示同一份内容。文章 ID 决定永久链接，目录位置和标题可以另行调整。&lt;/p&gt;
&lt;h2 id=&quot;内容文件&quot;&gt;内容文件&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;knowledge&lt;/code&gt; 保存 Markdown 正文、附件，以及专题和书籍的 YAML 文件。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;site.config.ts&lt;/code&gt; 设置站名、作者、首页文案和部署地址。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;src&lt;/code&gt; 保存 Astro 页面、布局、组件和样式。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dist/public&lt;/code&gt; 是构建生成的公开网站，可以重新生成。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;日常写作只需维护源文件。构建会校验字段与引用、处理公开范围，再生成页面、附件和搜索索引。&lt;/p&gt;
&lt;h2 id=&quot;从哪里开始&quot;&gt;从哪里开始&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;阅读&lt;a href=&quot;/articles/getting-started/&quot;&gt;开始使用澄屿&lt;/a&gt;，安装依赖并启动网站。&lt;/li&gt;
&lt;li&gt;跟随&lt;a href=&quot;/articles/source/&quot;&gt;新建、预览与发布文章&lt;/a&gt;创建第一份草稿，在本机查看。&lt;/li&gt;
&lt;li&gt;用 &lt;a href=&quot;/articles/markdown-guide/&quot;&gt;Markdown 排版与代码示例&lt;/a&gt;检查正文效果，按需整理&lt;a href=&quot;/articles/content-organization/&quot;&gt;专题与资料书&lt;/a&gt;。&lt;/li&gt;
&lt;li&gt;确认公开范围后，&lt;a href=&quot;/articles/publishing-guide/&quot;&gt;构建并部署&lt;/a&gt;。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;「澄屿入门」专题提供六篇教程的阅读顺序，「澄屿使用手册」按章节收录相同正文。&lt;/p&gt;
&lt;h2 id=&quot;支持的写法与发布方式&quot;&gt;支持的写法与发布方式&lt;/h2&gt;
&lt;p&gt;默认支持标准 Markdown、GFM 表格与任务列表、代码围栏和 NOTE 提示。数学、Mermaid、MDX、任意 HTML 和视频嵌入不属于默认能力。&lt;/p&gt;
&lt;p&gt;默认静态模式只生成公开网站，不显示登录。可选站主服务供唯一站主登录后阅读已发布的私人内容和预览全文，需要单独配置服务端环境，不提供注册或在线编辑。&lt;/p&gt;
&lt;p&gt;准备发布私人内容或部分预览时，先查阅&lt;a href=&quot;/articles/source/#%E9%80%89%E6%8B%A9%E5%85%AC%E5%BC%80%E8%8C%83%E5%9B%B4&quot;&gt;公开范围说明&lt;/a&gt;。&lt;/p&gt;</description></item><item><title>Markdown 排版与代码示例</title><link>https://example.com/articles/markdown-guide/</link><guid>https://example.com/articles/markdown-guide/</guid><pubDate>Sun, 18 Oct 2026 00:00:00 GMT</pubDate><description>在同一篇文章里查看常用 Markdown 排版，以及代码高亮、终端输出与 NOTE 提示。
&lt;p&gt;下面按元素展示 Markdown 和 GFM 写法。代码围栏内是源文本，围栏外是页面效果。&lt;/p&gt;
&lt;h2 id=&quot;标题与段落&quot;&gt;标题与段落&lt;/h2&gt;
&lt;p&gt;文章主标题来自元信息，正文建议从二级标题 &lt;code&gt;##&lt;/code&gt; 开始，按需要使用 &lt;code&gt;###&lt;/code&gt;。小标题会形成正文目录，层级应表达内容关系。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;段落写法&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 段落写法 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;## 第一个问题&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;这是第一段，段落之间留一个空行。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;### 更具体的观察&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;这是另一段。&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;h3 id=&quot;一段中文与英文混排&quot;&gt;一段中文与英文混排&lt;/h3&gt;
&lt;p&gt;这是一段中文排版样例。段落包含中文标点、English words 和较长的说明，用于观察字体、行距和自动换行。改变窗口宽度时，正文在阅读区域内重新排列；表格和代码的长行在各自区域内滚动。&lt;/p&gt;
&lt;p&gt;Astro 负责页面组织，Markdown 保存正文。像 &lt;code&gt;status: draft&lt;/code&gt; 这样的短表达适合使用行内代码；普通说明继续使用自然语言，避免整段都变成技术标识。&lt;/p&gt;
&lt;h2 id=&quot;强调引用与换行&quot;&gt;强调、引用与换行&lt;/h2&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;行内与引用&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 行内与引用 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;**关键结论**、*轻度强调*、~~不再采用的说法~~和 `行内代码`。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&amp;gt; 先留下问题，再补充能回答它的材料。&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;&lt;strong&gt;关键结论&lt;/strong&gt;、&lt;em&gt;轻度强调&lt;/em&gt;、&lt;del&gt;不再采用的说法&lt;/del&gt;和 &lt;code&gt;行内代码&lt;/code&gt;。&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;先留下问题，再补充能回答它的材料。&lt;/p&gt;
&lt;p&gt;引用也可以包含第二段，用来补足上下文。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;普通段落靠空行分开。如果需要同段内的硬换行，可以在行末放两个空格。不要用连续空行代替页面间距。&lt;/p&gt;
&lt;h2 id=&quot;列表与任务&quot;&gt;列表与任务&lt;/h2&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;列表写法&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 列表写法 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;1. 先确定要回答的问题。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;2. 再组织材料。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;   - 保留来源。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;   - 写下自己的解释。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;- [&lt;span class=&quot;token-string&quot;&gt;x&lt;/span&gt;] 留下标题&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;- [ ] 补充可验证的例子&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;ol&gt;
&lt;li&gt;先确定要回答的问题。&lt;/li&gt;
&lt;li&gt;再组织材料。
&lt;ul&gt;
&lt;li&gt;保留来源。&lt;/li&gt;
&lt;li&gt;写下自己的解释。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;完成之后读一遍，检查步骤是否连贯。&lt;/li&gt;
&lt;/ol&gt;
&lt;ul class=&quot;contains-task-list&quot;&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; checked disabled&gt; 留下标题&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; checked disabled&gt; 记录来源&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; 在自己的文章中应用一次&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;任务列表用于展示记录中的完成状态。网站没有在线编辑后台，勾选状态应在 Markdown 源文件中维护。&lt;/p&gt;
&lt;h2 id=&quot;表格与长内容&quot;&gt;表格与长内容&lt;/h2&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;表格写法&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 表格写法 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;| 内容 | 用途 |&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;| --- | --- |&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;| `summary` | 帮助读者选择文章 |&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;| 正文 | 展开过程与依据 |&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;div class=&quot;table-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;表格，可横向滚动&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;内容&lt;/th&gt;
&lt;th&gt;用途&lt;/th&gt;
&lt;th&gt;阅读时关注什么&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;标题&lt;/td&gt;
&lt;td&gt;说清楚本篇的问题&lt;/td&gt;
&lt;td&gt;能否辨认主题&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;summary&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;在列表里提供判断依据&lt;/td&gt;
&lt;td&gt;与正文是否一致&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;正文&lt;/td&gt;
&lt;td&gt;展开过程与依据&lt;/td&gt;
&lt;td&gt;段落能否连起来&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;a-long-example-identifier-for-a-narrow-screen&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;展示较长标识&lt;/td&gt;
&lt;td&gt;宽表格在自身区域横向滚动&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;表格、任务列表和删除线属于当前明确支持的 GFM 扩展。基础规则可查&lt;a href=&quot;/articles/commonmark-source/&quot;&gt;CommonMark 参考&lt;/a&gt;。&lt;/p&gt;
&lt;h2 id=&quot;图片链接与附件&quot;&gt;图片、链接与附件&lt;/h2&gt;
&lt;p&gt;图片使用相对于本文的文件路径，方括号写替代文字。本图是模板内绘制的流程示意，帮助说明内容怎样变成网页。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;图片写法&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 图片写法 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;![&lt;span class=&quot;token-string&quot;&gt;源文件经过构建后生成可阅读网页的流程&lt;/span&gt;](./reading-flow.svg)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;&lt;img src=&quot;/media/abe8cb13dd90a4994ae0.svg&quot; alt=&quot;源文件经过构建后生成可阅读网页的流程&quot;&gt;&lt;/p&gt;
&lt;p&gt;图示：正文先保存为源文件，构建后才成为页面。说明文字使用普通段落维护，不需要插入 HTML。&lt;/p&gt;
&lt;p&gt;站内链接可以写成 &lt;code&gt;[写作指南](content:source)&lt;/code&gt;，效果见&lt;a href=&quot;/articles/source/&quot;&gt;写作指南&lt;/a&gt;。下载附件也用相对路径，写法和移动文件时的注意事项见&lt;a href=&quot;/articles/content-organization/#%E6%AD%A3%E6%96%87%E9%93%BE%E6%8E%A5%E4%B8%8E%E9%99%84%E4%BB%B6&quot;&gt;正文链接与附件&lt;/a&gt;。&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;代码终端与提示&quot;&gt;代码、终端与提示&lt;/h2&gt;
&lt;h3 id=&quot;源码与高亮&quot;&gt;源码与高亮&lt;/h3&gt;
&lt;p&gt;代码围栏第一行依次写语言和可选的显示设置。&lt;code&gt;title=&quot;reading-note.ts&quot;&lt;/code&gt; 显示文件名，&lt;code&gt;{3-4}&lt;/code&gt; 突出第 3 至 4 行，&lt;code&gt;caption&lt;/code&gt; 显示代码下方的说明。复制按钮只复制源码。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;围栏写法&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 围栏写法 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;```typescript title=&amp;quot;reading-note.ts&amp;quot; {3-4} caption=&amp;quot;记录问题和自己的解释。&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-key&quot;&gt;const&lt;/span&gt; title &lt;span class=&quot;token-key&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token-string&quot;&gt;&amp;#39;阅读记录&amp;#39;&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-key&quot;&gt;const&lt;/span&gt; note &lt;span class=&quot;token-key&quot;&gt;=&lt;/span&gt; {&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  question: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;这段说明回答了哪个问题？&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  explanation: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;先复述，再补回限制条件。&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;console.log(title, note);&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;```&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;reading-note.ts&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 reading-note.ts 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;typescript 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-key&quot;&gt;const&lt;/span&gt; title &lt;span class=&quot;token-key&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token-string&quot;&gt;&amp;#39;阅读记录&amp;#39;&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-key&quot;&gt;const&lt;/span&gt; note &lt;span class=&quot;token-key&quot;&gt;=&lt;/span&gt; {&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line emphasis&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  question: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;这段说明回答了哪个问题？&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line emphasis&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  explanation: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;先复述，再补回限制条件。&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;console.log(title, note);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;code-caption&quot;&gt;记录问题和自己的解释。&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;未指定语言或找不到对应高亮器时，代码仍会显示。窄屏上的长行可以在代码块内横向滚动。&lt;/p&gt;
&lt;h3 id=&quot;终端输出&quot;&gt;终端输出&lt;/h3&gt;
&lt;p&gt;用 &lt;code&gt;terminal&lt;/code&gt; 围栏展示命令和输出。它有独立样式，省去源码行号和复制按钮。&lt;/p&gt;
&lt;figure class=&quot;code-block terminal&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;本地运行 · 示例输出&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;terminal&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;终端输出，可横向滚动&quot;&gt;&lt;pre&gt;&lt;span class=&quot;prompt&quot;&gt;$ node reading-note.js&lt;/span&gt;

阅读记录
已保存：问题、解释与下一步。&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;h3 id=&quot;note-提示&quot;&gt;NOTE 提示&lt;/h3&gt;
&lt;p&gt;普通引用继续使用 &lt;code&gt;&gt;&lt;/code&gt;。需要单独提示时，在引用首行写 &lt;code&gt;[!NOTE]&lt;/code&gt;，后面可加标题。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;提示写法&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 提示写法 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;markdown 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&amp;gt; [&lt;span class=&quot;token-string&quot;&gt;!NOTE&lt;/span&gt;] 复制之前&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&amp;gt; 先核对文件和上下文，再运行示例。&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;div class=&quot;callout&quot;&gt;&lt;strong&gt;复制之前&lt;/strong&gt;
&lt;p&gt;先核对文件和上下文，再运行示例。&lt;/p&gt;
&lt;/div&gt;</description></item><item><title>专题与资料书</title><link>https://example.com/articles/content-organization/</link><guid>https://example.com/articles/content-organization/</guid><pubDate>Fri, 12 Jun 2026 00:00:00 GMT</pubDate><description>用稳定链接、专题顺序和资料书目录组织同一批文章。
&lt;p&gt;本篇以 &lt;code&gt;first-note&lt;/code&gt; 为例，请先按&lt;a href=&quot;/articles/source/&quot;&gt;新建、预览与发布文章&lt;/a&gt;创建它。接下来将它加入一个专题和一本资料书。&lt;/p&gt;
&lt;h2 id=&quot;文章-id&quot;&gt;文章 ID&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;id&lt;/code&gt; 在整个内容根中唯一。参考资料、随记和项目也有自己的 ID，即使分别放在不同目录，也不能重复。标题可以改善，文件夹可以整理，但已经发布的 ID 应继续保留。&lt;/p&gt;
&lt;p&gt;文章和参考条目都放在 &lt;code&gt;knowledge/articles&lt;/code&gt;，通过 &lt;code&gt;type: article&lt;/code&gt; 或 &lt;code&gt;type: reference&lt;/code&gt; 区分。参考条目适合记录来源、收藏理由、适用场景和自己的解释，不必复制一篇外部文章。&lt;/p&gt;
&lt;h2 id=&quot;正文链接与附件&quot;&gt;正文链接与附件&lt;/h2&gt;
&lt;p&gt;链接到其他条目时使用稳定 ID，例如 &lt;code&gt;[阅读第一篇记录](content:first-note)&lt;/code&gt;。目标须先存在。构建时会自动加上部署的 base，并按目标类型生成文章、随记或项目的地址。&lt;/p&gt;
&lt;p&gt;相对源链接适合在编辑器里跟读，例如 &lt;code&gt;[另一份源文件](../other-note/index.md)&lt;/code&gt;。图片和下载附件也使用相对路径，例如 &lt;code&gt;![示意图](./diagram.png)&lt;/code&gt;。移动源文件时保留 ID，同时检查移出和指向该文件的相对链接。只发布正文实际引用的附件。&lt;/p&gt;
&lt;h2 id=&quot;专题顺序&quot;&gt;专题顺序&lt;/h2&gt;
&lt;p&gt;创建 &lt;code&gt;knowledge/topics/first-steps.yaml&lt;/code&gt;：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;knowledge/topics/first-steps.yaml&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;yaml&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 knowledge/topics/first-steps.yaml 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;yaml 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;id&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;first-steps&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;title&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;入门笔记&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;intro&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;按顺序阅读入门笔记。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;entries&lt;/span&gt;: [&lt;span class=&quot;token-string&quot;&gt;first-note&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;entries&lt;/code&gt; 的排列就是建议阅读顺序，与文章发布日期分开。加入第二篇时，先创建其正文，再将真实 ID 加进数组。不存在的引用会阻断构建，避免发布空入口。&lt;/p&gt;
&lt;p&gt;同一篇可以属于多个专题。例如 Markdown 排版教程同时收录在「澄屿入门」和「排版与技术写作」中。从各自的专题进入时，篇次和前后篇按该专题的顺序显示。&lt;/p&gt;
&lt;h2 id=&quot;资料书目录&quot;&gt;资料书目录&lt;/h2&gt;
&lt;p&gt;创建一本自己的书。若你在演示副本中练习，请用新的书籍 ID，保留演示的 &lt;code&gt;handbook&lt;/code&gt;。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;knowledge/books/my-handbook.yaml&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;yaml&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 knowledge/books/my-handbook.yaml 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;yaml 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;id&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;my-handbook&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;title&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;我的手边书&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;subtitle&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;遇到问题时回来查&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;intro&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;保存记录、来源和可再次使用的说明。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;order&lt;/span&gt;: &lt;span class=&quot;token-number&quot;&gt;10&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;theme&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;index&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;&lt;span class=&quot;token-prop&quot;&gt;chapters&lt;/span&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;  - &lt;span class=&quot;token-prop&quot;&gt;title&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;开始记录&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;    &lt;span class=&quot;token-prop&quot;&gt;children&lt;/span&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;      - &lt;span class=&quot;token-prop&quot;&gt;title&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;第一个问题&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;        &lt;span class=&quot;token-prop&quot;&gt;children&lt;/span&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;          - &lt;span class=&quot;token-prop&quot;&gt;id&lt;/span&gt;: &lt;span class=&quot;token-string&quot;&gt;first-note&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;分支使用 &lt;code&gt;title&lt;/code&gt; 和 &lt;code&gt;children&lt;/code&gt;，叶项使用 &lt;code&gt;id&lt;/code&gt;。目录可以继续嵌套，不把文章正文写进 YAML。运行检查与构建后，资料架出现新书，叶项打开同一篇 first-note。&lt;/p&gt;
&lt;p&gt;演示站的使用手册收录六篇教程，网站开发参考收录两份资料，「阅读与笔记」展示空书状态。&lt;/p&gt;
&lt;h2 id=&quot;选择合适的内容类型&quot;&gt;选择合适的内容类型&lt;/h2&gt;
&lt;div class=&quot;table-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;表格，可横向滚动&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;类型&lt;/th&gt;
&lt;th&gt;建议保存什么&lt;/th&gt;
&lt;th&gt;新建命令示例&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;article&lt;/td&gt;
&lt;td&gt;一个展开的问题与过程&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pnpm new article first-note&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;来源、用途和解释&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pnpm new reference reading-reference&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;jotting&lt;/td&gt;
&lt;td&gt;短观察、片段和提问&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pnpm new jotting first-jot&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;project&lt;/td&gt;
&lt;td&gt;成品的用途、功能和使用入口&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pnpm new project first-project&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;表中命令分别创建不同内容，不要对已有 ID 重复执行。它们都从私人草稿开始。随记可以设置 &lt;code&gt;time&lt;/code&gt;，同日记录按时间倒序；项目的真实地址留空时不出现按钮，示意图预设不等于项目截图。&lt;/p&gt;
&lt;h2 id=&quot;引用校验&quot;&gt;引用校验&lt;/h2&gt;
&lt;p&gt;删除正文前，搜索它的 ID，检查专题、书籍、正文链接、关联阅读和首页配置。移动源文件后再跑一次检查，因为相对链接和附件仍跟随文件位置。&lt;/p&gt;
&lt;p&gt;构建先过滤目标内容，再计算目录、计数和索引。因权限过滤而没有可见条目的书籍不会输出；主动设置 &lt;code&gt;chapters: []&lt;/code&gt; 的空书会保留。列表页数根据当前可见内容生成。&lt;/p&gt;
&lt;p&gt;整理完成后运行 &lt;code&gt;pnpm check&lt;/code&gt; 和 &lt;code&gt;pnpm build&lt;/code&gt;，再检查原有正文地址和集合入口。&lt;/p&gt;</description></item><item><title>构建、部署与更新</title><link>https://example.com/articles/publishing-guide/</link><guid>https://example.com/articles/publishing-guide/</guid><pubDate>Mon, 27 Apr 2026 00:00:00 GMT</pubDate><description>构建静态网站、设置部署路径，并随内容更新搜索索引。
&lt;p&gt;默认静态模式将网站生成到 &lt;code&gt;dist/public&lt;/code&gt;。确认内容状态和发布日期后，构建并检查该目录，再上传到静态托管服务。&lt;/p&gt;
&lt;h2 id=&quot;本地检查与构建&quot;&gt;本地检查与构建&lt;/h2&gt;
&lt;p&gt;在模板根目录执行：&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;发布前的本地流程&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;sh&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 发布前的本地流程 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;sh 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;check&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;test&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;build&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;pnpm &lt;span class=&quot;token-string&quot;&gt;preview&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;check 会检查字段、引用与类型。test 验证内容和服务规则。build 使用 Astro 输出完整页面，收集附件、建立 Pagefind 索引，并检查实际产物链接。只有全部成功才替换 &lt;code&gt;dist&lt;/code&gt;，失败不会覆盖上一成功版本。&lt;/p&gt;
&lt;p&gt;preview 默认监听本机 4321，读取已有产物。若仍有 dev 占用端口，先在对应终端停止它。&lt;/p&gt;
&lt;h2 id=&quot;发布目录&quot;&gt;发布目录&lt;/h2&gt;
&lt;p&gt;默认 static 模式只发布 &lt;strong&gt;&lt;code&gt;dist/public&lt;/code&gt; 中的内容&lt;/strong&gt;。其中包含页面、浏览器资源、正文附件、分页辅助数据、全文索引、RSS 和站点地图，应作为同一版本一起上传。&lt;/p&gt;
&lt;p&gt;不要只拷贝首页，也不要把 &lt;code&gt;dist&lt;/code&gt; 父目录、知识源、开发缓存或运行凭据作为公开目录。静态托管需要支持目录地址读取 index.html，例如 &lt;code&gt;/articles/source/&lt;/code&gt; 对应该目录的页面。&lt;/p&gt;
&lt;p&gt;上传 GitHub 的是已提交源码；对外网站使用的是构建产物。当前模板自带的工作流负责检查，没有自动部署步骤。选择托管方式后，再按对应平台配置发布位置和 HTTPS。&lt;/p&gt;
&lt;h2 id=&quot;根路径与子路径&quot;&gt;根路径与子路径&lt;/h2&gt;
&lt;p&gt;在 &lt;code&gt;site.config.ts&lt;/code&gt; 中设置自己的 &lt;code&gt;site&lt;/code&gt;。部署根路径使用 &lt;code&gt;base: &apos;/&apos;&lt;/code&gt;；部署在 &lt;code&gt;/blog/&lt;/code&gt; 时使用 &lt;code&gt;base: &apos;/blog/&apos;&lt;/code&gt;，并让文件实际位于该路径。&lt;/p&gt;
&lt;figure class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-head&quot;&gt;&lt;span class=&quot;window-dots&quot; aria-hidden=&quot;true&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;code-title&quot;&gt;子路径配置 · 局部示意&lt;/span&gt;&lt;span class=&quot;language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;copy-code&quot; type=&quot;button&quot; data-copy aria-label=&quot;复制 子路径配置 · 局部示意 代码&quot;&gt;复制&lt;/button&gt;&lt;/div&gt;&lt;div class=&quot;code-scroll&quot; tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;typescript 代码，可横向滚动&quot;&gt;&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;site: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;https://your-domain.example&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;line-num&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;line-content&quot;&gt;base: &lt;span class=&quot;token-string&quot;&gt;&amp;#39;/blog/&amp;#39;&lt;/span&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;保留其他配置，重新构建再查看页面与资源地址。路径问题常表现为首页可开、图片或搜索不可用，不要用逐页硬编码绝对地址来补救。&lt;/p&gt;
&lt;h2 id=&quot;搜索与分页一起更新&quot;&gt;搜索与分页一起更新&lt;/h2&gt;
&lt;p&gt;Pagefind 在构建时读取允许的正文。增加文章后，重新构建才能获得新全文索引。文章列表的字段搜索与全站全文搜索范围不同：前者查询标题、摘要、标签和专题名，后者查询已索引的正文。&lt;/p&gt;
&lt;p&gt;默认列表按页生成；分类和关键词筛选才按需读取当前栏目的检索数据、当前页卡片。部署时包含 &lt;code&gt;listing&lt;/code&gt;、&lt;code&gt;pagefind&lt;/code&gt; 和相关脚本，不混用不同构建版本。&lt;/p&gt;
&lt;h2 id=&quot;替换示例内容&quot;&gt;替换示例内容&lt;/h2&gt;
&lt;p&gt;先写自己的正文，再调整首页 &lt;code&gt;home.featured&lt;/code&gt; 和 &lt;code&gt;home.recent&lt;/code&gt;，然后修改专题和书籍 YAML。删除示例前搜索其 ID，清理正文链接、关联阅读和集合引用，最后再删除无需保留的附件。&lt;/p&gt;
&lt;p&gt;可以移除整套示例，但应保留自己的有效内容关系。不要为了使构建通过，随意把缺少发布状态的文件改成公开；先明确它应该是草稿、私人、预览还是公开。&lt;/p&gt;
&lt;h2 id=&quot;可选站主服务&quot;&gt;可选站主服务&lt;/h2&gt;
&lt;p&gt;需要完整私人阅读时，将 &lt;code&gt;clarislet.config.ts&lt;/code&gt; 的 mode 改为 owner，或者设置 &lt;code&gt;CLARISLET_MODE=owner&lt;/code&gt; 后构建。此时会生成 public 和 owner 两个目标。&lt;/p&gt;
&lt;p&gt;凭据通过 &lt;code&gt;pnpm owner:password&lt;/code&gt; 工具设置，用户名、密码与会话密钥使用服务端环境变量，具体要求见工程的 &lt;code&gt;docs/deployment.md&lt;/code&gt;。这里不提供可直接复用的默认密码。启动本项目 Node 服务进行统一认证，不能使用普通静态托管公开整个 dist。&lt;/p&gt;
&lt;p&gt;恢复 static 时清理相应环境设置，再构建并重启预览服务，使它读取新的 manifest。SQLite 只保存会话，正文继续由 Markdown 维护。&lt;/p&gt;
&lt;h2 id=&quot;发布检查清单&quot;&gt;发布检查清单&lt;/h2&gt;
&lt;ul class=&quot;contains-task-list&quot;&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; 核对日期、发布状态和公开范围，确认标题与摘要可以公开。&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; 打开首页、文章末页、代表性正文和资料目录，检查图片、附件和永久链接。&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; 搜索新增文章，确认匿名访问找不到私人或草稿正文。&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; 从正文返回列表，确认页码、筛选和滚动位置恢复。&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; 在手机宽度和明暗主题下检查表格、代码和导航。&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; 发布同一次构建的 &lt;code&gt;dist/public&lt;/code&gt; 内容，包括页面、附件和索引。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;如果启用了站主服务，再分别用匿名、登录和退出后的会话检查全文、附件与索引的访问结果。&lt;/p&gt;</description></item><item><title>阅读练习（10% 预览示例）</title><link>https://example.com/articles/english/</link><guid>https://example.com/articles/english/</guid><pubDate>Thu, 16 Oct 2025 00:00:00 GMT</pubDate><description>虚构阅读练习，用于展示 10% 预览的公开开头。
&lt;h2 id=&quot;练习说明&quot;&gt;练习说明&lt;/h2&gt;
&lt;p&gt;这是一份虚构阅读练习，材料是一段工具说明。&lt;/p&gt;
&lt;p&gt;先找出说明中的动作和条件，再用一个例子检查理解。&lt;/p&gt;</description></item></channel></rss>