site

A custom static site generator written in C.
git clone https://unitehenry.com/git/site.git
Log | Files | Refs | README

commit 974b5a0614109bd123ae2cc437cc0172781b0bd4
parent 48127b3781b2ff27e7f3f519c30b9cdc78c38daa
Author: Henry Unite <henry@getpoint.io>
Date:   Sun, 12 Apr 2026 14:30:29 -0700

fix: handle empty content path

Diffstat:
Msrc/generate.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/generate.c b/src/generate.c @@ -205,6 +205,11 @@ void generate_pages(StringList *list) { int i = 0; while (list->strings[i] != NULL) { + if (strcmp(trim_whitespace(list->strings[i]), "") == 0) { + i++; + continue; + } + StringMap *metadata = string_map_create(); get_content_metadata(&metadata, list->strings[i]);