commit 571d09ac00f4fd3ec59907a099222012c2bb8cb9
parent 2351fc6993e9893f352eaeaaa0f814fd12801480
Author: Frederic Cambus <fred@statdns.com>
Date: Sat, 5 Mar 2016 18:42:36 +0100
Linting
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/motyl.lua b/motyl.lua
@@ -86,10 +86,10 @@ data.site.categories = {}
local function render(directory)
for file in lfs.dir(directory) do
if file ~= "." and file ~= ".." then
- extension = file:match "[^.]+$"
+ local extension = file:match "[^.]+$"
if extension == "md" then
- path = file:match "(.*).md$"
+ local path = file:match "(.*).md$"
data.page = loadJSON(directory .. "/" .. path .. ".json")
data.page.content = loadMD(directory .. "/" .. file)
data.page.url = path .. "/"