diff page-index.c @ 81:1ffe2f5a8500

pasterd: use HTML files to allow themes
author David Demelier <markand@malikania.fr>
date Fri, 17 Mar 2023 07:56:01 +0100
parents 52029a52a385
children 0a29424e4486
line wrap: on
line diff
--- a/page-index.c	Fri Mar 17 07:46:43 2023 +0100
+++ b/page-index.c	Fri Mar 17 07:56:01 2023 +0100
@@ -25,8 +25,6 @@
 #include "paste.h"
 #include "util.h"
 
-#include "html/index.h"
-
 #define LIMIT 16
 #define TITLE "paster -- recent pastes"
 
@@ -135,7 +133,7 @@
 		.pastesz = pastesz
 	};
 
-	page(req, KHTTP_200, TITLE, html_index, &self.template);
+	page(req, KHTTP_200, TITLE, "index.html", &self.template);
 }
 
 void