aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-10-24 22:51:37 -0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-10-24 22:51:37 -0200
commite56a31d6e7ea750c221d7d778f0b60f531039137 (patch)
tree2b1c0d8f1c3909159ab481d43b5e53608874aaa7 /man
parent0132cd9dcede55ce7af3858d88f5cf9bb3d259e6 (diff)
downloadblogc-e56a31d6e7ea750c221d7d778f0b60f531039137.tar.gz
blogc-e56a31d6e7ea750c221d7d778f0b60f531039137.tar.bz2
blogc-e56a31d6e7ea750c221d7d778f0b60f531039137.zip
man: fixed blogc-source(7)
Diffstat (limited to 'man')
-rw-r--r--man/blogc-source.7.ronn10
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.