motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit 5b0065cc3c88a5e0d1092a372aa07a474787006a
parent 27f00725494da979c1cd6aa9c5699ae8bbf70dc2
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 16 May 2017 23:07:46 +0200

Declare data.site variables after loading configuration

Diffstat:
Msrc/motyl.lua | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/motyl.lua b/src/motyl.lua @@ -69,6 +69,9 @@ end local data = {} data.version = "Motyl 1.00" data.site = loadYAML("motyl.conf") +data.site.feed = {} +data.site.posts = {} +data.site.categories = {} -- Loading templates local templates = { @@ -80,10 +83,6 @@ local templates = { footer = readFile("themes/templates/footer.mustache") } -data.site.feed = {} -data.site.posts = {} -data.site.categories = {} - local function render(directory) for file in lfs.dir(directory) do if file ~= "." and file ~= ".." then