-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
68 lines (59 loc) · 1.84 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# https://taskfile.dev
version: '3'
tasks:
default:
deps: [run, open]
run:
desc: run serve
cmds:
# Start the built-in live server including draft
- hugo server --buildDrafts
open:
desc: open web server
cmds:
- open http://localhost:1313/
deploy:
desc: build to public as https://gohugo.io/getting-started/usage/#deploy-your-website
cmds:
- rm -fr public
- hugo
# Output will be in ./public/ directory by default
# (-d/--destination flag to change it, or set publishdir in the config file).
try-new:
desc: try as https://gohugo.io/getting-started/quick-start/
cmds:
- hugo new site quickstart
# $ hugo new site quickstart
# Congratulations! Your new Hugo site is created in /Users/cao/dev/hello-hugo/quickstart.
#
# Just a few more steps and you're ready to go:
#
# 1. Download a theme into the same-named folder.
# Choose a theme from https://themes.gohugo.io/ or
# create your own with the "hugo new theme <THEMENAME>" command.
# 2. Perhaps you want to add some content. You can add single files
# with "hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>".
# 3. Start the built-in live server via "hugo server".
#
# Visit https://gohugo.io/ for quickstart guide and full documentation.
- |
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo theme = \"ananke\" >> config.toml
hugo new posts/my-first-post.md
try:
cmds:
- cd quickstart && hugo server -D
version:
desc: show hugo version
deps: [install-hugo]
cmds:
- hugo version
install-hugo:
desc: install hugo
status:
- which hugo
cmds:
- brew install hugo
- hugo help