diff options
author | Simon McVittie <smcv@debian.org> | 2014-09-01 08:56:46 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-09-01 08:58:12 +0100 |
commit | 6806ddfdff5e17ec85683d38bad814a46ffa4efe (patch) | |
tree | 5041ab142db7f3261a946f2678e7b86e43c18bf8 /doc | |
parent | 9adee0a222277733dd98bc433ef240e25e438242 (diff) | |
download | ikiwiki-6806ddfdff5e17ec85683d38bad814a46ffa4efe.tar ikiwiki-6806ddfdff5e17ec85683d38bad814a46ffa4efe.tar.gz |
Only provide time, not formatted_time, to edittemplate templates
I'm not sure what the use-case is for formatted_time, and chrysn
pointed out that for display in HTML, [[!date "<TMPL_VAR time>"]]
would be nicer.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ikiwiki/directive/edittemplate.mdwn | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/ikiwiki/directive/edittemplate.mdwn b/doc/ikiwiki/directive/edittemplate.mdwn index 22767de43..13e282c11 100644 --- a/doc/ikiwiki/directive/edittemplate.mdwn +++ b/doc/ikiwiki/directive/edittemplate.mdwn @@ -29,7 +29,7 @@ something like: The template page can also contain [[!cpan HTML::Template]] directives, like other ikiwiki [[templates]]. -Four variables might be set: +These variables might be set: * `<TMPL_VAR name>` is replaced with the name of the page being created. @@ -40,7 +40,4 @@ Four variables might be set: * `<TMPL_VAR time>` is replaced with the current (template generation) time, using a fixed format, `%Y-%m-%d %H:%M:%S`. -* `<TMPL_VAR formatted_time` is replaced with the current (template - generation) time, formatted by IkiWiki. - [[!meta robots="noindex, follow"]] |