commit 48218dcb4b2ed338c7dff6d93cba90e6d3b9925e
parent fdf30dc3830acf2728269d10a230a859eb7e6866
Author: Ryan Wolf <johnwayne@pseudony.ms>
Date: Wed, 16 Apr 2025 23:42:00 -0400
move readme link to header
Diffstat:
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -151,7 +151,7 @@ writelog(FILE *fp)
fputs("<tr><td><a href=\"", fp);
percentencode(fp, stripped_name, strlen(stripped_name));
- fputs("/log.html\">", fp);
+ fputs("/\">", fp);
xmlencode(fp, stripped_name, strlen(stripped_name));
fputs("</a></td><td>", fp);
xmlencode(fp, description, strlen(description));
diff --git a/stagit.c b/stagit.c
@@ -521,9 +521,9 @@ writeheader(FILE *fp, const char *title)
fputs("</head>\n<body>\n<table><tr><td>", fp);
fprintf(fp, "<a href=\"%s/..\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
baseurl, baseurl);
- fputs("</td><td><h1>", fp);
+ fprintf(fp, "</td><td><h1><a href=\"%s\">", baseurl);
xmlencode(fp, strippedname, strlen(strippedname));
- fputs("</h1><span class=\"desc\">", fp);
+ fputs("</a></h1><span class=\"desc\">", fp);
xmlencode(fp, description, strlen(description));
fputs("</span></td></tr>", fp);
if (cloneurl[0]) {
@@ -540,9 +540,6 @@ writeheader(FILE *fp, const char *title)
if (submodules)
fprintf(fp, " | <a href=\"%sfile/%s.html\">Submodules</a>",
baseurl, submodules);
- if (readme)
- fprintf(fp, " | <a href=\"%sfile/%s.html\">README</a>",
- baseurl, readme);
if (license)
fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>",
baseurl, license);