stagit

My fork of stagit

git clone git://git.shimmy1996.com/stagit.git
commit 64bf9e9a82d0a240bb29e3b2c1421a6d6a8771cf
parent 2553af70604efacb52278a03470229dc59360a07
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"