satelito

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

commit 8fe9b5df651d8af817569860390b584a89802810
parent 4498dec95e9f5d4fed861023f351bf2cd8915c9f
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 25 Feb 2022 14:07:02 -0500

Rename pagemeta.nav to pagemeta.navigation

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

diff --git a/satelito/model.lua b/satelito/model.lua @@ -70,7 +70,7 @@ function model.set(filepath, config, contentdir) pagemeta.template = pagemeta.template or pagemeta.posttype or 'default' pagemeta.layout = pagemeta.layout or 'layout' pagemeta.head = pagemeta.head or 'head' - pagemeta.nav = pagemeta.nav or 'navigation' + pagemeta.navigation = pagemeta.navigation or 'navigation' pagemeta.footer = pagemeta.footer or 'footer' pagemeta.feed = pagemeta.feed or 'feed.xml' diff --git a/satelito/page.lua b/satelito/page.lua @@ -16,7 +16,7 @@ function page.make(filemeta, templates) -- Compile different parts of the page 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 navigation = etlua.compile(file.read(template.find(templates, filemeta.navigation))) local footer = etlua.compile(file.read(template.find(templates, filemeta.footer))) local layout = etlua.compile(file.read(template.find(templates, filemeta.layout))) -- Then put them all together