-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
29 lines (24 loc) · 926 Bytes
/
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
version: "3"
tasks:
start_server:
# watch: true
# sources:
# - 'content/**/*.md'
cmds:
- hugo server -D --buildFuture
start_slides:
# watch: true
# sources:
# - 'content/**/*.md'
cmds:
- hugo server -D --buildFuture --config hugo-slides.toml
new_post:
cmds:
- new_post "{{.CLI_ARGS}}"
# new_talk:
# cmds:
# - hugo new --kind talk-bundle talks/{{.TALK_NAME}}
generate:og:
cmds:
- ls content/posts/ | parallel 'mkdir -p content/posts/{}/images && tcardgen -c scripts/og/config.yaml --template=scripts/og/template.png -f scripts/og/fonts/ content/posts/{}/index.md -o content/posts/{}/images/cover.png'
- ls content/videos/ | parallel 'mkdir -p content/videos/{}/images && tcardgen -c scripts/og/config.yaml --template=scripts/og/template.png -f scripts/og/fonts/ content/videos/{}/index.md -o content/videos/{}/images/cover.png'