<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>johndoe</title>
    <link>http://www.example.com/</link>
    <description>Recent content on johndoe</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 05 Apr 2026 10:00:00 +0800</lastBuildDate>
    <atom:link href="http://www.example.com/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hugo &#43; Cloudflare Pages 搭建个人博客全流程</title>
      <link>http://www.example.com/posts/%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E5%85%A8%E6%B5%81%E7%A8%8B/</link>
      <pubDate>Sun, 05 Apr 2026 10:00:00 +0800</pubDate>
      <guid>http://www.example.com/posts/%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E5%85%A8%E6%B5%81%E7%A8%8B/</guid>
      <description>&lt;h2 id=&#34;一前言&#34;&gt;&#xA;  一、前言&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e4%b8%80%e5%89%8d%e8%a8%80&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;这是我用 Hugo + Cloudflare Pages 搭建的个人博客，记录一下完整的搭建过程.&lt;/p&gt;&#xA;&lt;h2 id=&#34;二环境准备&#34;&gt;&#xA;  二、环境准备&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e4%ba%8c%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;工具：&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Hugo：静态站点生成器（用于生成博客页面）&lt;/li&gt;&#xA;&lt;li&gt;Git：版本控制工具（用于代码托管）&lt;/li&gt;&#xA;&lt;li&gt;VS Code：代码编辑器（可选，用于编辑配置/文章）&lt;/li&gt;&#xA;&lt;li&gt;GitHub 账号：用于托管博客源码&lt;/li&gt;&#xA;&lt;li&gt;Cloudflare 账号：用于免费部署博客&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;我的系统：Windows 11&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;三搭建步骤&#34;&gt;&#xA;  三、搭建步骤&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e4%b8%89%e6%90%ad%e5%bb%ba%e6%ad%a5%e9%aa%a4&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;1-本地搭建静态页面&#34;&gt;&#xA;  1. 本地搭建静态页面&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#1-%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%ba%e9%9d%99%e6%80%81%e9%a1%b5%e9%9d%a2&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;安装 hugo（winget install Hugo.Hugo.Extended）&lt;/li&gt;&#xA;&lt;li&gt;创建 hugo 项目&lt;/li&gt;&#xA;&lt;li&gt;从hugo网站中复制主题&#xA;&lt;a href=&#34;https://gohugo.io/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://gohugo.io/&lt;/a&gt; &amp;ndash;&amp;gt; themes &amp;ndash;&amp;gt; Coder &amp;ndash;&amp;gt; Download &amp;ndash;&amp;gt; code &amp;ndash;&amp;gt; Clone using the web URL.&lt;/li&gt;&#xA;&lt;li&gt;配置 hugo.toml，使用主题作者提供的示例&lt;/li&gt;&#xA;&lt;li&gt;删掉示例中的主题库，避免影响后续推送(rmdir /s /q themes\hugo-coder.git)&lt;/li&gt;&#xA;&lt;li&gt;运行 hugo 验证是否可以成功构建(hugo)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;2-托管至-github&#34;&gt;&#xA;  2. 托管至 Github&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#2-%e6%89%98%e7%ae%a1%e8%87%b3-github&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;使用cmd，分别git init（初始化一个git仓库） git add .（当前文件添加到Git暂存区） git commit -m &amp;ldquo;Initial&amp;rdquo;（初始化提交仓库）&lt;/li&gt;&#xA;&lt;li&gt;在 Github 上创建一个仓库，复制仓库地址，运行git remote add origin+仓库地址命令，设置本地项目Git远程地址到仓库&lt;/li&gt;&#xA;&lt;li&gt;将本地仓库代码推送至GitHub远程仓库（git push -u origin master 或 git push -u origin main）&lt;/li&gt;&#xA;&lt;li&gt;到仓库验证本地代码已推送&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;3-部署至-cloudflare-pages&#34;&gt;&#xA;  3. 部署至 Cloudflare Pages&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#3-%e9%83%a8%e7%bd%b2%e8%87%b3-cloudflare-pages&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;进入 Cloudflare - 构建 - Compute - Workers 和 Pages 页面，点击创建应用程序，选择 Pages。首次使用时，绑定和授权 Github 账号&lt;/li&gt;&#xA;&lt;li&gt;在创建应用程序页面，选择要部署的项目对应仓库，选择静态框架为 hugo，快速部署，完成后使用 Cloudflare Pages 提供的默认域名访问网页&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
    </item>
  </channel>
</rss>
