ferron

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

commit 27aa0ad731733a93ed191c401f7ba3a8200c5dd2
parent de24d68ed5374f25036878b40bd807dc7f2a215f
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sat, 25 Nov 2017 08:38:33 -0500

Remove unused comments.

Diffstat:
Mfunctions/make-lists-of-pages.lua | 1-
Mfunctions/move-to-publichtml.lua | 35-----------------------------------
2 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/functions/make-lists-of-pages.lua b/functions/make-lists-of-pages.lua @@ -40,7 +40,6 @@ local function makelistsofpages() end end - if path.isdir(listindex_pathhtml) == false then fileutils.mkdir(listindex_pathhtml) end diff --git a/functions/move-to-publichtml.lua b/functions/move-to-publichtml.lua @@ -2,41 +2,6 @@ local path = require("path") local function movetopublichtml() - -- Copy the entire `SITE.PATHS.CONTENT` folder in `SITE.PATHS.HTML` - --path.copy(Ferron.site.path .. Ferron.site.config.SITE.PATHS.CONTENT .. "/*", Ferron.site.path .. Ferron.site.config.SITE.PATHS.HTML, {recurse = true}) - - -- Then remove all non Web files - -- path.each( - -- Ferron.site.path .. Ferron.site.config.SITE.PATHS.HTML .. "/*", "f", - -- function(f) - -- if path.extension(f) == ".md" - -- or path.extension(f) == ".json" - -- then - -- path.remove(f) - -- end - -- end, - -- { - -- delay = true; -- use snapshot of directory - -- recurse = true; -- include subdirs - -- reverse = true; -- subdirs at first - -- } - -- ) - - -- And after that remove all HTML files in the `Ferron.PATHS.CONTENT` folder - -- path.each( - -- Ferron.site.path .. Ferron.site.config.SITE.PATHS.CONTENT .. "/*", "f", - -- function(f) - -- if path.extension(f) == ".html" then - -- path.remove(f) - -- end - -- end, - -- { - -- delay = true; -- use snapshot of directory - -- recurse = true; -- include subdirs - -- reverse = true; -- subdirs at first - -- } - -- ) - -- Copy the entire `SITE.PATHS.STATIC` folder in `SITE.PATHS.HTML` path.copy(Ferron.site.path .. Ferron.site.config.SITE.PATHS.STATIC .. "/*", Ferron.site.path .. Ferron.site.config.SITE.PATHS.HTML, {recurse = true})