hugo Quick Start

安装 Hugo

1
2
sudo apt-get install hugo -y
hugo version

基本使用

1
2
3
hugo new site <sitename> # 会创建一个<sitename>的文件夹
cd <sitename>
hugo new posts/first.md # 在 content 目录下创建一个`posts/first.md`

目录结构:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.
├── archetypes
│   └── default.md
├── config.toml
├── content
│   └── posts
│   └── first.md
├── data
├── layouts
├── resources
│   └── _gen
│   ├── assets
│   └── images
├── static
└── themes

Reference

  1. doc

One More Thing

-