satelito

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

commit 4498dec95e9f5d4fed861023f351bf2cd8915c9f
parent 9e7036d2f638819ba9913e3c88809a69127c27c8
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 25 Feb 2022 13:37:07 -0500

Add reldir and rellinkdir properties

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

diff --git a/satelito/model.lua b/satelito/model.lua @@ -22,9 +22,11 @@ function model.set(filepath, config, contentdir) -- Path properties pagemeta.relpath = file.get_relpath(filepath, contentdir) + pagemeta.reldir = pagemeta.relpath:match("(.*/)") -- Link properties pagemeta.rellink = file.get_rellink(filepath, contentdir) + pagemeta.rellinkdir = '/'.. (pagemeta.reldir ~= nil and pagemeta.reldir or '') pagemeta.permalink = file.get_permalink(filepath, contentdir, config.siteurl) pagemeta.exportlink = file.get_exportlink(filepath, contentdir, config.paths.public_html) pagemeta.dirlink = file.get_permalink(filepath, contentdir, config.siteurl):match("(.*/)")