stagit

My fork of stagit

git clone git://git.shimmy1996.com/stagit.git
commit b5eebbe4180af4843911bf44900b883d26d6fe2d
parent 2bdb11b40149ed8d3fab69c5c82704e86693e5da
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sun,  3 May 2020 13:28:04 -0500

Change return link location and add logo on index page

Diffstat:
Alogo.svg | 5+++++
Mstagit-index.c | 1+
Mstagit.c | 2+-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/logo.svg b/logo.svg
@@ -0,0 +1,5 @@
+<svg height="32" width="32" xmlns="http://www.w3.org/2000/svg">
+<rect fill="#5a4865" height="32" width="32"/>
+<polygon fill="#b38d7a" points="6.399999999999999,16 12.16,12.16 20.266666666666666,0 32,0 32,11.733333333333333 19.84,19.84 16,25.6 12.16,19.84 "/>
+<polygon fill="#5a4865" points="9.6,16 13.866666666666667,13.866666666666667 16,9.6 18.133333333333333,13.866666666666667 22.4,16 18.133333333333333,18.133333333333333 16,22.4 13.866666666666667,18.133333333333333 "/>
+</svg>
diff --git a/stagit-index.c b/stagit-index.c
@@ -73,6 +73,7 @@ writeheader(FILE *fp)
 	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<header>\n", fp);
+	fprintf(fp, "<img style=\"float:right;width:5em;\" alt=\"\" src=\"/%slogo.svg\">\n", relpath);
     fprintf(fp, "<h1>%s</h1>\n", title);
     fprintf(fp, "<p><em>");
 	xmlencode(fp, description, strlen(description));
diff --git a/stagit.c b/stagit.c
@@ -469,7 +469,7 @@ writeheader(FILE *fp, const char *title)
 		name, relpath);
 	fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
 	fputs("</head>\n<body>\n<header>\n<nav>", fp);
-	fprintf(fp, "<a href=\"../%s\">←Trantor Holocron</a> | ", relpath);
+	fprintf(fp, "<span style=\"float:right\"><a href=\"../%s\">⏎</a></span>", relpath);
 	fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath);
 	fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath);
 	fprintf(fp, "<a href=\"%srefs.html\">Refs</a>", relpath);