satelito

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

commit f1f79b3886ef345cb6b429470e4d74797f2d2c18
parent ab6bf49f2ff19591eef4bb2b3151ded219692f5e
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu, 10 Mar 2022 06:32:41 -0500

Add two paths properties

Diffstat:
Msatelito/model.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/satelito/model.lua b/satelito/model.lua @@ -22,6 +22,8 @@ function model.set(filepath, config, contentdir) pagemeta.datetime = pagemeta.datetime or os.date('%H:%M:%S', lfs.attributes(filepath).change) -- Path properties + pagemeta.contentdir = contentdir + pagemeta.path = filepath pagemeta.relpath = file.get_relpath(filepath, contentdir) pagemeta.reldir = pagemeta.relpath:match("(.*/)")