vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 2369fd73aa73f139a6a6028eaa00a16229664fa7
parent 28177c33e33ba26a69035b1593e843c3769f3abc
Author: EinfachToll <istjanichtzufassen@googlemail.com>
Date:   Sat,  8 Jul 2017 22:02:44 +0200

Add documentation for the %date placeholder

Ref #360

Diffstat:
Mdoc/vimwiki.txt | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt @@ -1399,6 +1399,18 @@ into it. See |vimwiki-option-template_path| for details. +------------------------------------------------------------------------------ +%date *vimwiki-date* + +The date of the wiki page. The value can be used in the HTML template, see +|vimwiki-option-template_path| for details. + +%date 2017-07-08 +%date + +If you omit the date after the placeholder, the date of the HTML conversion is +used. + ============================================================================== 8. Lists *vimwiki-lists* @@ -1950,11 +1962,13 @@ Each template could look like: > <div class="content"> %content% </div> + <p><small>Page created on %date%</small></p> </body> </html> where %title% is replaced by a wiki page name or by a |vimwiki-title| + %date% is replaced with the current date or by |vimwiki-date| %root_path% is replaced by a count of ../ for pages buried in subdirs: if you have wikilink [[dir1/dir2/dir3/my page in a subdir]] then %root_path% is replaced by '../../../'.