ferron

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

commit 6ad41c5b8e56aef7f3d8f6e0dd85d940f22a9c1b
parent 240d6db62c0b7a0e0328d2bf66709342058c92e0
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sat,  2 May 2020 14:35:30 -0400

Remove unused keys

Diffstat:
Mferron/site.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ferron/site.lua b/ferron/site.lua @@ -122,14 +122,14 @@ local function setnavigation(contentlocation, baseurl) local _tbl = {} -- First, add those who get an navigation.order property sets - for idx, val in ipairs(tbl) do + for _, val in ipairs(tbl) do if val.order then _tbl[val.order] = val end end --- Then add the rest - for idx, val in ipairs(tbl) do + for _, val in ipairs(tbl) do if not val.order then _tbl[#_tbl+1] = val end