为什么选 Hugo
Hugo 会把 Markdown 编译成纯静态的 HTML,部署后服务器只负责发文件,几乎不消耗计算资源,非常适合放到现有服务器上。
快速开始
hugo new site myblog
cd myblog
git init
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
hugo new content posts/hello.md
hugo server -D # 本地预览
hugo --minify # 构建出 public/
构建完成后,把 public/ 里的静态文件交给 Web 服务器(或 Caddy)即可。