个人技术博客,使用 Hugo 和 Hugo Theme Stack 构建。
先安装 Hugo Extended 0.158.0 或更高版本:
winget install Hugo.Hugo.Extendedhugo server -D然后访问 http://localhost:1313/。
hugo --gc --minify --baseURL "https://www.ccyun.cloud/"仓库推送到 codemakeryyds/codemakeryyds.github.io 后,GitHub Actions 会自动构建并发布到 GitHub Pages。
GitHub Pages 需要设置:
- Repository:
codemakeryyds/codemakeryyds.github.io - Pages Source:
GitHub Actions - Custom domain:
www.ccyun.cloud
DNS 需要设置:
www.ccyun.cloudCNAME 指向codemakeryyds.github.io
评论系统已按 Giscus 预配置,但默认关闭。启用前需要:
- 在 GitHub 仓库开启 Discussions。
- 安装 Giscus App。
- 到
https://giscus.app/zh-CN生成repoID和categoryID。 - 填入
config/_default/params.toml,再把comments.enabled改为true。