这个博客使用 Hugo 和 CaiJimmy/hugo-theme-stack 主题,准备部署到 Cloudflare Pages。
详细日常操作请看 BLOG_GUIDE.md。
.\tools\hugo\hugo.exe server --buildDrafts打开终端里显示的 http://localhost:1313/ 即可预览。
.\tools\hugo\hugo.exe new content post/my-new-post.md编辑 content/post/my-new-post.md,发布前把 draft: true 改成 draft: false。
- Framework preset:
Hugo - Production branch:
main - Build command:
hugo -b $CF_PAGES_URL - Build output directory:
public - Environment variable:
HUGO_VERSION=0.163.0
把 GitHub 仓库连接到 Cloudflare Pages 后,每次推送到 main 分支都会自动重新部署。