ferron

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

commit 8e6c64651b21bc2d82d3bc1a3e88d6160e81666f
parent b30600043e5b1a2f5aa25e8f198ffffd7283d2c2
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Mon, 17 Jun 2019 15:57:20 -0400

Rename page.iterator to page.makepages

Diffstat:
Mferron/init.lua | 2+-
Mferron/page.lua | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ferron/init.lua b/ferron/init.lua @@ -44,7 +44,7 @@ if arg[1] == 'build' then return build{ site.setsite(sitename), site.setnavigation(), - page.iterator(), + page.makepages(), link.makeshorts(), link.makerewritemap(), static.init() diff --git a/ferron/page.lua b/ferron/page.lua @@ -127,7 +127,7 @@ function page.render(pagesource) return print(metaTable.date .. ' - ' .. metaTable.title) end -function page.iterator() +function page.makepages() local contentpath = tableutils.from(fileutils.getdirtree(fileutils.isDirectory(Ferron.site.content))) local singlepages = tableutils.filter(fileutils.isNotIndex, contentpath) local indexpages = tableutils.filter(fileutils.isIndex, contentpath)