ferron

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

commit 39c2232eb997c00077b25f9702f23ef4e591b9fd
parent da596deec7d05e2d536bcd7b40bb33551ac00afe
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Fri, 30 Aug 2019 08:05:38 -0400

Make some tests

Diffstat:
Mferron/link.lua | 4+++-
Mferron/page.lua | 2++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ferron/link.lua b/ferron/link.lua @@ -63,7 +63,9 @@ function link.makerewritemap() map, map_err = io.open(links_map, 'a') for k, v in pairs(links) do - map:write(v .. ' ' .. k, '\n') + -- location "/C" { block return 301 "https://$SERVER_NAME/C" } + -- map:write(v .. ' ' .. k, '\n') + map:write('location match ' .. '"/' .. tostring(v) .. '" { block return 301 "https://$SERVER_NAME' .. tostring(k), '"}\n') end -- Close it when it's done diff --git a/ferron/page.lua b/ferron/page.lua @@ -125,6 +125,8 @@ function page.render(pagesource) ) ) + print(lfs.attributes(page).size) + return print(metaTable.date .. ' - ' .. metaTable.title) end