<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>迁移指南 on 樊尘刹记</title>
		<link>http://localhost:1313/categories/%E8%BF%81%E7%A7%BB%E6%8C%87%E5%8D%97/</link>
		<description>Recent content in 迁移指南 on 樊尘刹记</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
			<managingEditor>richffan@outlook.com (richfan)</managingEditor>
		
		
			<webMaster>richffan@outlook.com (richfan)</webMaster>
		
		
		
			<lastBuildDate>Fri, 21 Aug 2026 10:00:00 +0800</lastBuildDate>
		
			<atom:link href="http://localhost:1313/categories/%E8%BF%81%E7%A7%BB%E6%8C%87%E5%8D%97/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>从 Hexo 迁移到 Hugo：URL 与 Front Matter</title>
				<link>http://localhost:1313/r/20260818.html</link>
				<pubDate>Fri, 21 Aug 2026 10:00:00 +0800</pubDate><author>richffan@outlook.com (richfan)</author>
				<guid>http://localhost:1313/r/20260818.html</guid>
				<description>&lt;p&gt;从 Hexo 迁移到 Hugo 时，Markdown 正文通常可以直接复用，真正需要仔细处理的是 Front Matter、固定链接和旧地址。Solitude Hugo 保留常用文章参数，同时使用 Hugo 的原生字段表达更新日期和 URL 兼容关系。&lt;/p&gt;&#xA;&lt;h2 id=&#34;front-matter-字段映射&#34;&gt;Front Matter 字段映射&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Hexo&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Hugo&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;说明&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;date&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;date&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;文章发布日期&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;updated&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;lastmod&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;最后更新时间&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;abbrlink&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;slug&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;用原短链接值生成文章地址&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;categories&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;categories&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;进入 Hugo 分类 Taxonomy&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;tags&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;tags&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;进入 Hugo 标签 Taxonomy&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;top&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;weight&lt;/code&gt; 或自定义字段&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;根据站点排序策略决定&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;&lt;code&gt;cover&lt;/code&gt;、&lt;code&gt;description&lt;/code&gt;、&lt;code&gt;comment&lt;/code&gt;、&lt;code&gt;aside&lt;/code&gt;、&lt;code&gt;toc&lt;/code&gt;、&lt;code&gt;series&lt;/code&gt; 等 Solitude 参数可以继续放在文章 Front Matter 中。&lt;/p&gt;&#xA;&lt;h2 id=&#34;保留-abbrlink-地址&#34;&gt;保留 abbrlink 地址&lt;/h2&gt;&#xA;&lt;p&gt;示例站在 &lt;code&gt;hugo.yaml&lt;/code&gt; 中使用：&lt;/p&gt;&#xA;&lt;figure class=&#34;code-block&#34; data-code-block data-language=&#34;yaml&#34;&gt;&#xA;  &lt;figcaption class=&#34;code-block__toolbar&#34;&gt;&#xA;    &lt;span class=&#34;code-block__language&#34;&gt;yaml&lt;/span&gt;&#xA;      &lt;button class=&#34;code-block__copy&#34; type=&#34;button&#34; data-code-copy&gt;复制&lt;/button&gt;&#xA;  &lt;/figcaption&gt;&#xA;  &lt;div class=&#34;code-block__viewport&#34;&gt;&#xA;    &lt;pre class=&#34;code-block__fallback&#34; tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;uglyURLs:&#xA;  posts: true&#xA;&#xA;permalinks:&#xA;  posts: /p/:slug&lt;/code&gt;&lt;/pre&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;button class=&#34;code-block__expand&#34; type=&#34;button&#34; data-code-expand hidden&gt;展开全部&lt;/button&gt;&#xA;&lt;/figure&gt;&#xA;&lt;p&gt;文章把原 Hexo &lt;code&gt;abbrlink&lt;/code&gt; 复制到 &lt;code&gt;slug&lt;/code&gt;：&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
