satelito

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

commit b23122a992a8190aba0cb05684e59144f4814d99
parent 96750e5b250baa434088f9fbca695eca876f883b
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun,  3 Oct 2021 13:28:27 -0400

Add a condition isolation

Diffstat:
Msatelito/file.lua | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/satelito/file.lua b/satelito/file.lua @@ -118,8 +118,7 @@ function file.get_collection(filepath, dirname) for subfilepath in dirtree.get(file.get_dirname(filepath)) do if subfilepath - and file.is_markdown(subfilepath) - or file.is_html(subfilepath) + and (file.is_markdown(subfilepath) or file.is_html(subfilepath)) and not file.is_index(subfilepath) then collection[#collection+1] = file.get_relpath(subfilepath, dirname)