cld-ssg

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

commit ac439af9554f1c43369d3ad49a9842625d84d7dc
parent e2a4f5316163d72040f2feb5afb897c6de754278
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Sun, 29 Sep 2019 11:28:25 -0400

Fixed a small bug where the post directory wasn't created

Whatever was in buf was being used as the directory, broke everything

Diffstat:
Mmain.c | 3+++
Dutil.o | 0
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -173,6 +173,9 @@ void free_post(struct post *p) /* Writes a post to an html file */ int write_post(struct post *post) { + /* Generate the directory structure */ + sprintf(buf, "%s%s", HTMLDIR, post->dir); + printf("DEBUG: %s\n", buf); if(create_directory(buf) < 0) return -1; diff --git a/util.o b/util.o Binary files differ.