mirror of
https://github.com/mickael-menu/zk
synced 2024-11-15 12:12:56 +00:00
19 lines
469 B
Plaintext
19 lines
469 B
Plaintext
$ 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
|
|
|