ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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
posted on 2022-08-12 00:01  ramlife  阅读(427)  评论(0)    收藏  举报