ferron

Ferron is a fast and simple static website generator made with Lua.
Log | Files | Refs | Submodules | README | LICENSE

commit b3dbea5cfa78583948f845069b3837394e316e77
parent f40cff305877831309d1ab17f9db5aff6866d338
Author: Hugo Soucy <hugo.soucy@toumoro.com>
Date:   Thu, 13 Feb 2020 15:06:51 -0500

Return if draft is set to true

Diffstat:
Mferron/page.lua | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/ferron/page.lua b/ferron/page.lua @@ -83,6 +83,13 @@ function page.render(page, sitedata) local shortlinks_db local shortlinks_tb + -- If draft is set to true + -- Don't render the page + if metaTable.draft then + print(metaTable.draft, metaTable.title) + return + end + -- If in among navigation location values the permalink exists -- Then set current parameter to true -- Else set it to false