第一步,windows10安装hugo博客。
第二步,手动发布或更新博客到cloudflare的具体步骤:
1、新建hugo博客(修改Untitled为博客文章名) Powershell: hugo new posts/Untitled.md-
2、进入“E:\Hugo\bin\blog\content\posts”,将新建博客拖拽到已打开的Obsidian中进行编辑,完成后关闭博客;
3、本地最小化构建: Powershell: hugo –gc –minify –enableGitInfo
4、进入“E:\Hugo\bin\blog\public\posts\”,将新建博客文件夹和index.html一起拖拽复制到文件夹“D:\Documents\Obsidian Vault\博客发布上传文件夹\public\posts\”;
5、返回上一级,将首页文件“E:\Hugo\bin\blog\public\index.html”拖拽复制到文件夹“D:\Documents\Obsidian Vault\博客发布上传文件夹\public\”;
6、登录cloudflare.com,左侧,构建,计算,Workers和Pages,点击hugoblog,右上角,创建部署,将第5步完成后的public文件夹“D:\Documents\Obsidian Vault\博客发布上传文件夹\public\”拖拽上传,保存并部署。