hugo usages

Add Some Content

1
2
3
4
5
add an article [my-first-post.md] to folder [post]
$ hugo new post/my-first-post.md

add a new menu [about]
$ hugo new about.md

Edit the newly created content file if you want. Now, start the Hugo server with drafts enabled:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ hugo server -D

Started building sites ...
Built site for language en:
1 of 1 draft rendered
0 future content
0 expired content
1 regular pages created
8 other pages created
0 non-page files copied
1 paginator pages created
0 categories created
0 tags created
total in 18 ms
Watching for changes in /Users/bep/sites/quickstart/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop