ferron

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

commit cdeab89d47ffe848254666cb36c171018d328947
parent 066947a81af4e31113acbf6fcd40d50a2b3fa421
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 26 Apr 2020 21:50:29 -0400

Add a templatemod option

Diffstat:
Mferron/page.lua | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ferron/page.lua b/ferron/page.lua @@ -163,8 +163,12 @@ function page.makepages(sitedata) local pagemod = lfs.attributes(p).modification local pageconfmod = (lfs.attributes(fl.removeextension(p) .. '.json') or lfs.attributes(fl.removeextension(p) .. '.lua')).modification + local templatemod = lfs.attributes(fl.gettemplatefile(p, sitedata)).modification - if pagemod > lastbuildmod or pageconfmod > lastbuildmod then + if pagemod > lastbuildmod + or pageconfmod > lastbuildmod + or templatemod > lastbuildmod + then page.render(p, sitedata) end else