跳转至

Hugo

  1. Hugo is a Go-based static site generator known for its speed and flexibility in 2013.
  2. Hugo has set itself apart by being fast. More precisely, it has set itself apart by being much faster than Jekyll.
  3. Jekyll uses Liquid as its templating language. Hugo uses Go templating. Most people seem to agree that it is a little bit easier to learn Jekyll’s syntax than Hugo’s.1

基本命令

Install hugo and set env.

sudo apt-get install hugo

hugo new site /path/to/site
cd /path/to/site

New post and deployment

hugo new posts/hugo.md

# test
hugo server --themesDir ../..
# 预览
hugo server -D -d ./tmp
# or
hugo server --buildDrafts ./tmp

参考文献