satelito

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

commit 6b8158cb503562826d86856ac56989e4e4210016
parent c84eda71c58ecb12ed02403ce5b7856f02d14bf7
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 25 Apr 2021 20:48:53 -0400

Put the footer outside the layout

Diffstat:
Msatelito/page.lua | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/satelito/page.lua b/satelito/page.lua @@ -15,13 +15,15 @@ function page.make(filemeta, templates) local post = etlua.compile(file.read(template.find(templates, filemeta.template))) local head = etlua.compile(file.read(template.find(templates, filemeta.head))) local navigation = etlua.compile(file.read(template.find(templates, filemeta.nav))) + local footer = etlua.compile(file.read(template.find(templates, filemeta.footer))) local layout = etlua.compile(file.read(template.find(templates, filemeta.layout))) local html = layout( lume.extend({}, filemeta, {post = post(lume.extend({}, filemeta))}, {head = head(lume.extend({}, filemeta))}, - {navigation = navigation(lume.extend({}, filemeta))} + {navigation = navigation(lume.extend({}, filemeta))}, + {footer = footer(lume.extend({}, filemeta))} ) ) local html_path = filemeta.exportlink