diff page-index.c @ 64:e8d8eaa0da53

pasterd: support <title> in header
author David Demelier <markand@malikania.fr>
date Thu, 26 May 2022 13:28:10 +0200
parents ecb0b90d94d8
children 1a98bc0daa49
line wrap: on
line diff
--- a/page-index.c	Thu May 26 13:09:33 2022 +0200
+++ b/page-index.c	Thu May 26 13:28:10 2022 +0200
@@ -64,7 +64,7 @@
 	size_t pastesz = NELEM(pastes);
 
 	if (!database_recents(pastes, &pastesz))
-		page(r, NULL, KHTTP_500, "pages/500.html");
+		page(r, NULL, KHTTP_500, "pages/500.html", "500");
 	else
 		page_index_render(r, pastes, pastesz);
 
@@ -88,7 +88,7 @@
 		.cb = template
 	};
 
-	page(r, &kt, KHTTP_200, "pages/index.html");
+	page(r, &kt, KHTTP_200, "pages/index.html", "Recent pastes");
 }
 
 void
@@ -99,7 +99,7 @@
 		get(r);
 		break;
 	default:
-		page(r, NULL, KHTTP_400, "400.html");
+		page(r, NULL, KHTTP_400, "400.html", "400");
 		break;
 	}
 }