ferron

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

commit 15e9b4ce6af44a4d8e2b0a74f69bf1cef709427b
parent 97769c9baaa269e98577056abb655198a1000078
Author: Hugo Soucy <hugo.soucy@toumoro.com>
Date:   Mon, 10 Feb 2020 21:34:11 -0500

Fixes a var declaration

Diffstat:
Mferron/utilities/file-utils.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ferron/utilities/file-utils.lua b/ferron/utilities/file-utils.lua @@ -226,9 +226,9 @@ function fileutils.setpageid(file, sitedata) end function fileutils.getpageconf(pagepath) - local pageconf = nil local conflua = fileutils.isFile(fileutils.removeextension(pagepath) .. '.lua') local confjson = fileutils.isFile(fileutils.removeextension(pagepath) .. '.json') + local pageconf if conflua then package.path = package.path .. ';' .. fileutils.getdirname(conflua) .. '/?.lua'