summaryrefslogtreecommitdiff
path: root/src/template.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-04-08 09:33:35 +0300
committerLars Wirzenius <liw@liw.fi>2021-04-08 09:37:21 +0300
commitf30f28037928be75405a84addd9a9bd3242ee15e (patch)
tree9defe8213c416e8f48ba96ad7cf62acff3ffec5f /src/template.rs
parentfc917bf829c8a7cbf950754abc7085ffb00dbf17 (diff)
downloadjt2-f30f28037928be75405a84addd9a9bd3242ee15e.tar.gz
feat: add a timestamp to the default template
Diffstat (limited to 'src/template.rs')
-rw-r--r--src/template.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/template.rs b/src/template.rs
index 1ad8a54..89c1a15 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -3,6 +3,7 @@ use std::path::Path;
use tera::{Context, Tera};
const NEW_ENTRY: &str = r#"[[!meta title="{{ title }}"]]
+[[!meta date="{{ date }}"]]
This is the default template.
"#;