satelito

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

commit d2b112697fcf0c75397a7a84e7b22285864ec27d
parent 9b46848c02746de7cc8bd24a6746f53d4832e2e9
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 27 Nov 2022 11:25:47 -0500

Add a warning

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

diff --git a/satelito/init.lua b/satelito/init.lua @@ -154,6 +154,18 @@ if args['pipe'] then end end + if lume.count(sitedata) == 1 and file.is_index(sitedata[1].path) then + print([[ + WARNING! + + The only page your about to build is an index page. In this case + you better to pipe the folder if this page is a list for other + pages. + + Otherwise some of your content might be missing. + ]]) + end + print('=> '..lume.count(sitedata)..' content found') print('=> Making the web site ...')