stagit

My fork of stagit

git clone git://git.shimmy1996.com/stagit.git
commit 21159314129e9e16198f63bc7ca31e86c9a69735
parent 8538e77b5683804934e33cddda29fa5cc6a54ec1
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat,  4 Apr 2020 13:05:28 -0500

Add title for index page

Diffstat:
Mstagit-index.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -13,7 +13,8 @@ static git_repository *repo;
 
 static const char *relpath = "";
 
-static char description[255] = "Repositories";
+static char description[255] = "Secrets from the Second Foundation.";
+static char const title[255] = "Trantor Holocron";
 static char *name = "";
 static char owner[255];
 
@@ -68,10 +69,11 @@ writeheader(FILE *fp)
 		"<html>\n<head>\n"
 		"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
 		"<title>", fp);
-	xmlencode(fp, description, strlen(description));
+	xmlencode(fp, title, strlen(title));
 	fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
 	fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
 	fputs("</head>\n<body>\n", fp);
+    fprintf(fp, "<h1>%s</h1>\n", title);
     fprintf(fp, "<span class=\"desc\">");
 	xmlencode(fp, description, strlen(description));
 	fputs("</span>\n"