2022-01-10 13:28:14 +00:00
|
|
|
$ cd blank
|
|
|
|
|
2022-12-04 09:11:06 +00:00
|
|
|
$ echo "[note]\n filename = '\{{slug title}} - \{{format-date now \"%B\"}}'" > .zk/config.toml
|
2022-01-10 13:28:14 +00:00
|
|
|
|
|
|
|
# The default language is `en`.
|
|
|
|
# Note the & converted to `and` in the slug.
|
|
|
|
$ zk new --title "Foo \& Bar" --date "January 2nd" --dry-run
|
|
|
|
2>{{working-dir}}/foo-and-bar - January.md
|
|
|
|
|
|
|
|
# Set a custom language.
|
|
|
|
# Note the & converted to `et` in the slug.
|
|
|
|
$ echo "language = 'fr'" >> .zk/config.toml
|
|
|
|
$ zk new --title "Ceci \& cela" --date "January 2nd" --dry-run
|
|
|
|
2>{{working-dir}}/ceci-et-cela - January.md
|
|
|
|
|