commit 4dac931d906dea6844ae98311575348a5e966c36
parent a8ae1d029d82b0153dd7962ec9590c5b07cb1fa3
Author: Hugo Soucy <hugo@soucy.cc>
Date: Tue, 28 Nov 2017 06:49:50 -0500
Remove the commented about prefetch
Diffstat:
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/functions/dispatch-nontextuals.lua b/functions/dispatch-nontextuals.lua
@@ -5,7 +5,7 @@ local path = require("path")
local tableutils = require("functions.table-utils")
local function dispatchnontextuals(file, filesection)
- local mimestable = {"image/svg+xml", "image/jpeg", "image/png", "application/pdf"}
+ local mimestable = {"image/svg+xml", "image/jpeg", "image/png", "application/pdf"}
path.each(
path.dirname(file) .. "/*", "f",
@@ -22,14 +22,10 @@ local function dispatchnontextuals(file, filesection)
-- Then symlinks from those non-textuals for list index pages
lfs.link("." .. img_relpath, htmlfolder .. "/" .. img_section .. "/" .. img_name, true)
-
- --prefetchtable[#prefetchtable + 1] = Ferron.site.config.SITE.BASEURL .. "/" .. img_section .. img_relpath
end
end,
{recurse = true}
- )
-
- return prefetchtable
+ )
end
return dispatchnontextuals