ubuntu 20.04 安装 hugo
安装
brew install hugo
hugo version
使用 ubuntu 20.04,可以直接安装好 hugo,不需要像 centos7 那么麻烦。。。
新建站点
hugo new site quickstart
新建一个 quickstart 文件夹站点
安装 theme
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo theme = \"ananke\" >> config.toml
新建网页
hugo new posts/my-first-post.md
启动服务
hugo server -D
浙公网安备 33010602011771号