From e56a31d6e7ea750c221d7d778f0b60f531039137 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 24 Oct 2015 22:51:37 -0200 Subject: man: fixed blogc-source(7) --- man/blogc-source.7.ronn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'man') 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. -- cgit v1.2.3-18-g5258