ferron

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

commit 89ce363f885083128832ac1eab9086960d6492fb
parent 689121eb69729d2a6c335000acde2cb44acc31fa
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 24 Nov 2017 00:59:50 -0500

Add a logic operator condition to have listindex on all levels

Diffstat:
Mfunctions/make-lists-of-pages.lua | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/functions/make-lists-of-pages.lua b/functions/make-lists-of-pages.lua @@ -34,12 +34,11 @@ local function makelistsofpages() for k, v in tableutils.sortdescendingpairs(Ferron.site.pagestable) do local date, datetime, section, relpath = k:match("(.-)|(.-)|(.-)|(.-)$") - if section == listindex_section then + if section == listindex_section or relpath:match("%/"..listindex_section.."%/") then table.insert(listindex_table["entries"], v) - end + end end - if path.isdir(listindex_pathhtml) == false then fileutils.mkdir(listindex_pathhtml) end