From 64ff86514bf92b0cb89c481ebfb8ae547f215bd8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 14 Aug 2017 09:57:01 -0700 Subject: Added example of setting date with lua filter. --- doc/lua-filters.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 34165a791..abe07723e 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -108,6 +108,15 @@ return { } ``` +### Setting the date in the metadata + +```lua +function Meta(m) + m.date = os.date("%B %e, %Y") + return m +end +``` + ### Extracting information about links This filter prints a table of all the URLs linked to -- cgit v1.2.3