diff options
| author | Paul Buetow <paul@buetow.org> | 2023-03-25 15:39:24 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-03-25 15:39:24 +0200 |
| commit | 4af1566f397edd9300178a842cb2ceb1a7f9bb25 (patch) | |
| tree | 9828f215c0c0439ec69ee361614e5ebc190ea04f /lib/template.source.sh | |
| parent | 9ad249a38a07f57c1bb9d14302ea59d478d9f6b8 (diff) | |
draft also generates .gmi files from draft templates
Diffstat (limited to 'lib/template.source.sh')
| -rw-r--r-- | lib/template.source.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/template.source.sh b/lib/template.source.sh index ec49490..204078d 100644 --- a/lib/template.source.sh +++ b/lib/template.source.sh @@ -14,6 +14,11 @@ template::generate () { log INFO "Converted $num_tpl_files template files" } +template::draft () { + CONTENT_FILTER=DRAFT- + template::generate +} + template::_generate_file () { local -r tpl_path="$1"; shift local -r tpl_dir="$(dirname "$tpl_path")" |
