Hugo
- Hugo is a Go-based static site generator known for its speed and flexibility in 2013.
- Hugo has set itself apart by being fast. More precisely, it has set itself apart by being much faster than Jekyll.
- Jekyll uses
Liquid
as its templating language. Hugo usesGo
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.
New post and deployment
hugo new posts/hugo.md
# test
hugo server --themesDir ../..
# 预览
hugo server -D -d ./tmp
# or
hugo server --buildDrafts ./tmp