<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>随笔 on 我的博客</title><link>https://kailservers.top/categories/%E9%9A%8F%E7%AC%94/</link><description>Recent content in 随笔 on 我的博客</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 22 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://kailservers.top/categories/%E9%9A%8F%E7%AC%94/index.xml" rel="self" type="application/rss+xml"/><item><title>开始写第一篇博客</title><link>https://kailservers.top/posts/hello-world/</link><pubDate>Thu, 22 Oct 2026 00:00:00 +0000</pubDate><guid>https://kailservers.top/posts/hello-world/</guid><description>站点已经跑起来了，这一篇说明日常怎么写文章、怎么发布。</description><content:encoded><![CDATA[<h2 id="欢迎">欢迎</h2>
<p>这是这个博客的第一篇文章。站点基于 Hugo + PaperMod 搭建，全部是静态文件，没有数据库，也不依赖后端服务。</p>
<h2 id="日常写作流程">日常写作流程</h2>
<p>写一篇新文章只有两步：</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># 1. 新建文章（会自动带好 front matter 模板）</span>
</span></span><span class="line"><span class="cl">hugo new content posts/我的新文章.md
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># 2. 本地预览，边写边看</span>
</span></span><span class="line"><span class="cl">hugo server -D
</span></span></code></pre></div><p>写完把 <code>public/</code> 目录重新生成、传到服务器上就发布了：</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">hugo --minify
</span></span></code></pre></div><h2 id="front-matter-说明">Front matter 说明</h2>
<p>每篇文章开头的那段 <code>---</code> 之间就是元信息：</p>
<table>
	<thead>
			<tr>
					<th>字段</th>
					<th>作用</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td><code>title</code></td>
					<td>文章标题</td>
			</tr>
			<tr>
					<td><code>date</code></td>
					<td>发布日期，决定归档和排序</td>
			</tr>
			<tr>
					<td><code>draft</code></td>
					<td><code>true</code> 时只在本地预览可见，不会发布</td>
			</tr>
			<tr>
					<td><code>tags</code></td>
					<td>标签，支持多个</td>
			</tr>
			<tr>
					<td><code>categories</code></td>
					<td>分类，建议每篇只填一个</td>
			</tr>
			<tr>
					<td><code>summary</code></td>
					<td>列表页显示的摘要</td>
			</tr>
			<tr>
					<td><code>ShowToc</code></td>
					<td>是否显示右侧目录</td>
			</tr>
	</tbody>
</table>
<h2 id="接下来">接下来</h2>
<ul>
<li>在 <code>content/posts/</code> 里删掉示例文章，换成你自己的内容</li>
<li>在 <code>hugo.toml</code> 里改站点名、署名和简介（搜「必改」）</li>
<li>公安备案号下来后，填到 <code>[params.beian]</code> 的 <code>police</code> 字段</li>
</ul>
]]></content:encoded></item></channel></rss>