Introduction
Introduction Statistics Contact Development Disclaimer Help
allow pages to not be indexes - saait - the most boring static page generator
git clone git://git.codemadness.org/saait
Log
Files
Refs
README
LICENSE
---
commit 68b7e11cb8d6eee9bfe01fa6fa8728d0d946c63d
parent 8724977835f5e052068a0949b9a8ba07d97bcee3
Author: Hiltjo Posthuma <[email protected]>
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:
M saait.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…
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.