Hugo Github Cloudflar 搭建博客

Archlinux 用户

paru hugo

选择 extend 版本进行安装

hugo new site hugo-blog

访问 https://repo.new/ 新建 blog 仓库,然后克隆到本地

将 blog 文件夹下的内容复制到仓库文件夹下

使用 Cloudflare 页面进行部署

登录 Cloudflare 仪表盘切换到 Pages 页面,并选择 Create a project,从 Git 构建然后选择 Github 上的 blog 仓库

在 Pages Settings 中设置变量,例如 HUGO_VERSION:0.99.1