From 9ceef9cf5043916754178370d8caf46a8fc79954 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 20 Jul 2019 14:44:05 -0400 Subject: add .html to filenames --- blog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/blog.c b/blog.c index 263cb14..9772361 100644 --- a/blog.c +++ b/blog.c @@ -101,6 +101,7 @@ int handle_post(void) *end++ = '-'; } } + strcat(uri, ".html"); int newpost = openat(blogdir, uri, O_WRONLY | O_CREAT, 0644); if (newpost == -1) { -- cgit v1.2.1