安装
brew install hugo
快速开始
hugo new site quickstart
cd quickstart
git init
git submodule https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
echo "theme = 'PaperMod'" >> config.toml
hugo server
添加备案
- cp themes/PaperMod/layouts/partials/footer.html layouts/partials/footer.html
- 修改layouts/partials/footer.html增加如下:
<span class="icp">
<a class="icp" target="_blank" href="https://beian.miit.gov.cn/">京ICP备xxx号</a>
</span>
note
使用参考: