8000 GitHub - wingshan0510/blog: Hugo blog using the Stack theme, deployed with Cloudflare Pages. · GitHub
[go: up one dir, main page]

Skip to content
wingshan0510Public

About

Hugo blog using the Stack theme, deployed with Cloudflare Pages.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

我的 Hugo 博客

这个博客使用 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。

Cloudflare Pages 设置

  • 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 分支都会自动重新部署。

About

Hugo blog using the Stack theme, deployed with Cloudflare Pages.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

0