mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
469 B
Plaintext
19 lines
469 B
Plaintext
3 years ago
|
$ cd blank
|
||
|
|
||
|
$ mkdir .zk/templates
|
||
|
|
||
|
$ echo "# \{{title}}" > .zk/templates/custom.md
|
||
|
|
||
|
# Set a custom template.
|
||
|
$ echo "[note] filename = '\{{slug title}}'\n template = 'custom.md'" > .zk/config.toml
|
||
|
|
||
|
$ zk new --title "A new note" --dry-run
|
||
|
># A new note
|
||
|
2>{{working-dir}}/a-new-note.md
|
||
|
|
||
|
# Template not found.
|
||
|
$ echo "[note] template = 'not-found'" > .zk/config.toml
|
||
|
1$ zk new --dry-run
|
||
|
2>zk: error: new note: load template file failed: cannot find template at not-found
|
||
|
|