satelito

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

commit 1e2a4edc6732dc5fc19b886af2e5128689d999c9
parent ecad77fcc146c283940fd8ac8f56472c3170ed63
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Wed, 21 Apr 2021 20:50:33 -0400

Accept the html as content source

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

diff --git a/satelito/init.lua b/satelito/init.lua @@ -56,7 +56,7 @@ if args['pipe'] then local sitemap = {} for filepath in (io.lines()) do - if file.is_markdown(filepath) then + if file.is_markdown(filepath) or file.is_html(filepath) then local configpath = site.get_config(filepath) -- Change the current directory to the config's directory @@ -131,7 +131,7 @@ if args['make'] then -- for filepath in dirtree.get(contentdir) do - if file.is_markdown(filepath) then + if file.is_markdown(filepath) or file.is_html(filepath) then local meta = model.set(filepath, config, contentdir) sitemap[meta.relpath] = lume.extend({}, meta)