diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-10-24 22:51:37 -0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-10-24 22:51:37 -0200 |
commit | e56a31d6e7ea750c221d7d778f0b60f531039137 (patch) | |
tree | 2b1c0d8f1c3909159ab481d43b5e53608874aaa7 /man/blogc-source.7.ronn | |
parent | 0132cd9dcede55ce7af3858d88f5cf9bb3d259e6 (diff) | |
download | blogc-e56a31d6e7ea750c221d7d778f0b60f531039137.tar.gz blogc-e56a31d6e7ea750c221d7d778f0b60f531039137.tar.bz2 blogc-e56a31d6e7ea750c221d7d778f0b60f531039137.zip |
man: fixed blogc-source(7)
Diffstat (limited to 'man/blogc-source.7.ronn')
-rw-r--r-- | man/blogc-source.7.ronn | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/man/blogc-source.7.ronn b/man/blogc-source.7.ronn index 8f43413..b37d5cc 100644 --- a/man/blogc-source.7.ronn +++ b/man/blogc-source.7.ronn @@ -32,7 +32,15 @@ blocks that handle local variables. See blogc-template(7) for details. The ``DATE`` variable is special, and represents the publishing date of the post. It may be formatted with the ``DATE_FORMAT`` variable, if provided, -otherwise will be kept as is. +otherwise will be kept as is. The proper way to access the date from the +template is to use the ``DATE_FORMATTED`` variable, that will contain the +formatted date, or the original date, depending on whether the ``DATE_FORMAT`` +variable is provided or not. + +The ``DATE`` variable should be in the following format: ``yyyy-mm-dd hh:mm:ss``. +You can omit seconds, minutes and hours if you want, they will be filled with +'0'. Allowed formats are ``yyyy-mm-dd hh:mm:ss``, ``yyyy-mm-dd hh:mm``, +``yyyy-mm-dd hh`` and ``yyyy-mm-dd`` The ``DATE_FORMAT`` variable should be passed to blogc(1) as a global variable. Its value must be a valid strptime(3) format. |