satelito

Static [web] site (or page) generator (ssg) made with Lua script.
git clone git://soucy.cc/satelito.git
Log | Files | Refs | README

commit aa38e7a0fc0f9cc4eabb8907a56c69283334bee2
parent 2837915addeab166245363d2ee36f23f8332789d
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  3 Nov 2022 19:35:03 -0400

Extend the data of the include function to get gloabal config

Diffstat:
Msatelito/model.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/satelito/model.lua b/satelito/model.lua @@ -86,7 +86,7 @@ function model.set(filepath, config, contentdir) pagemeta.include = function(templatename) local inc = etlua.compile(file.read(template.find(config.templates, templatename))) - return inc(pagemeta) + return inc(lume.extend({}, config, pagemeta)) end return lume.extend({}, config, pagemeta)