motyl

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

commit d88dcd1c22bae74a7d2009003d7b669e3212fadd
parent 9620a1e9b15a46d3edb9fbe5ae548b165e389967
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 27 Feb 2016 18:46:41 +0100

Displaying generated URL instead of source file when reporting progression

Diffstat:
Mmotyl.lua | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/motyl.lua b/motyl.lua @@ -77,11 +77,12 @@ local function render(directory) if extension == "md" then path = file:match "(.*).md$" - print("Rendering : " .. file) data.page = loadJSON(directory .. "/" .. path .. ".json") data.page.content = loadMD(directory .. "/" .. path .. ".md") data.page.url = path .. "/" + status("Rendering " .. data.page.url) + if directory == "posts" then table.insert(data.site.posts, data.page)