cld-ssg

The static site generator (to be) used for hellocld.com
git clone git://git.hellocld.com/cld-ssg
Log | Files | Refs

commit aa8c4c45ecfd97ceb8c1615372761b329ed41508
parent 2ec832282e9583b1b1bf41650e28fd8cc2071df0
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Tue,  1 Oct 2019 16:13:50 -0400

t_postcount error check now returns if no posts are found

Diffstat:
Rpostdir/2019-09-24-20-24-real-test.md -> 2019-09-24-20-24-real-test.md | 0
Rpostdir/2019-09-29-12-15-another-test.md -> 2019-09-29-12-15-another-test.md | 0
Rpostdir/2019-09-30-21-38-img-test.md -> 2019-09-30-21-38-img-test.md | 0
Rpostdir/2019-10-01-09-58-embed-testing.md -> 2019-10-01-09-58-embed-testing.md | 0
Mmain.c | 2+-
5 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/postdir/2019-09-24-20-24-real-test.md b/2019-09-24-20-24-real-test.md diff --git a/postdir/2019-09-29-12-15-another-test.md b/2019-09-29-12-15-another-test.md diff --git a/postdir/2019-09-30-21-38-img-test.md b/2019-09-30-21-38-img-test.md diff --git a/postdir/2019-10-01-09-58-embed-testing.md b/2019-10-01-09-58-embed-testing.md diff --git a/main.c b/main.c @@ -55,7 +55,7 @@ int main() /* Load all posts */ struct dirent **t_mds; int t_postcount = scandir(POSTDIR, &t_mds, md_filter, alphasort); - if(t_postcount < 0) { + if(t_postcount <= 0) { printf("ERROR: Failed to load posts from %s\n", POSTDIR); return -1; }