One minute
Hugo常用命令
2019年03月21日
Hugo 常用命令备忘录
安装
brew install hugo
版本
hugo version
建站
hugo new site quickstart
加主题
cd quickstart
git init
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
echo 'theme = "ananke"' >> config.toml
写文章
hugo new posts/my-first-post.md
---
title: "My First Post"
date: 2019-03-26T08:47:11+01:00
draft: true
---
起 Hugo 服务
hugo server -D
配置
config.toml
Build
hugo -D
56 Words
2019-03-21 08:00 +0800
Read other posts