Constant tpnote_lib::config::TMPL_NEW_FILENAME
source · pub const TMPL_NEW_FILENAME: &str = "\
{%- set tag = now() | date(format='%Y%m%d') -%}
{{ fm_title | sanit | prepend(with_sort_tag=tag) }}\
{{ fm_subtitle | default(value='') | sanit | prepend(with='--') }}\
{{ extension_default | prepend(with='.') }}\
";Expand description
Default filename template for a new note file on disk. It implements the
sync criteria for note metadata in front matter and filename.
Useful variables in this context are:
{{ title| sanit }}, {{ subtitle| sanit }}, {{ extension_default }}. In general, in filename template, all variables (except nowandextension_defaultmust be filtered by asanit` filter.