ferron

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

commit a92f022125fc5be800b23b454d15a2ed80336857
parent 40e08ac122affb7a8a7ede80c1b91b71194553c0
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Tue, 30 Jan 2018 16:20:39 -0500

Finish the refactoring of the dispatchnontextuals function

Diffstat:
Mfunctions/dispatch-nontextuals.lua | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/functions/dispatch-nontextuals.lua b/functions/dispatch-nontextuals.lua @@ -18,14 +18,10 @@ local function dispatchnontextuals(file) local htmlfolder = Ferron.site.path .. Ferron.site.config.SITE.PATHS.HTML -- Then symlinks from those non-textuals for list index pages - --lfs.link("." .. img:sub((file_dirname):len() + 1), Ferron.site.path .. Ferron.site.config.SITE.PATHS.HTML .. img_relpath, true) + lfs.link("." .. img:sub((file_dirname):len() + 1), file_dirname .. "/" .. img_name, true) -- Copy all non-textual contents (jpg, pdf, png, svg, etc.) to `public_html/` path.copy(img, htmlfolder .. img_relpath) - - os.execute("pwd") - - print(f) end end, {recurse = true}