ferron

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

commit 90a45058d9116c3286678dc7d145f4f31943d891
parent 2efec3a2c0772ef9be1ea40b9c5043c5dd5f1493
Author: Hugo Soucy <hugo.soucy@toumoro.com>
Date:   Fri, 20 Mar 2020 20:03:43 -0400

Fix an ugly bug

Diffstat:
Mferron/feed.lua | 2--
Mferron/page.lua | 4+++-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ferron/feed.lua b/ferron/feed.lua @@ -14,8 +14,6 @@ function feed.makefeed(data, destination) local feedtypes = site.config.feedtypes local feeddata = data - feeddata['content'] = nil - for k, v in pairs(feedtypes) do local feedtemplate = site.templates .. '/feed/' .. k .. '.mustache' diff --git a/ferron/page.lua b/ferron/page.lua @@ -7,6 +7,7 @@ local pagemeta = { } local inspect = require 'inspect' +local lfs = require 'lfs' local json = require 'dkjson' local markdown = require 'discount' local fl = require 'ferron.utilities.file-utils' @@ -84,6 +85,7 @@ 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 @@ -143,7 +145,7 @@ function page.render(page, sitedata) ) ) - return -- print(metaTable.content) + return --print(metaTable.content, page) end function page.makepages(sitedata)