motyl

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

commit 5e6e29bf55ec824924aa7acc57e132bafe3873ef
parent 729b5c4b45d22ab480d5547f131fc4e93e407f04
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 27 Feb 2016 22:46:41 +0100

Use original file name instead of recreating it from path

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

diff --git a/motyl.lua b/motyl.lua @@ -87,7 +87,7 @@ local function render(directory) if extension == "md" then path = file:match "(.*).md$" data.page = loadJSON(directory .. "/" .. path .. ".json") - data.page.content = loadMD(directory .. "/" .. path .. ".md") + data.page.content = loadMD(directory .. "/" .. file) data.page.url = path .. "/" status("Rendering " .. data.page.url)