saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 68b7e11cb8d6eee9bfe01fa6fa8728d0d946c63d
parent 8724977835f5e052068a0949b9a8ba07d97bcee3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  4 Aug 2017 14:29:37 +0200

allow pages to not be indexes

set in a .cfg config file the line:

	index=0

Diffstat:
Msaait.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/saait.c b/saait.c @@ -425,6 +425,9 @@ main(int argc, char *argv[]) } fclose(templates[j].fp); } else { + v = getvar(c, "index"); + if (v && v->value[0] == '0') + continue; b = &templates[j].blocks[BlockItem]; writepage(templates[j].fp, b->name, c, b->data); }