stagit
Personal fork of stagit
git clone git://mccd.space/stagit
| Log | Files | Refs | README | LICENSE |
commit cceebe51a0b09cef06d3abb6d31257aef60125ca parent 2d4dec82a9270a8012135a7e2dfd13e453d8f8b3 Author: Marc <marc@coquand.email> Date: Tue, 30 Jun 2026 15:07:42 +0200 * Diffstat:
| M | stagit.c | | | 34 | +++++++++++++++++----------------- |
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -521,33 +521,33 @@ writeheader(FILE *fp, const char *title)
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/main.css\" />\n");
fputs("</head>\n<body>", fp);
fputs("<header><nav><a class=\"logo\" id=\"logo\" href=\"/\">mccd</a><ul><li><a href=\"https://merveilles.town/@mccd\">mastodon</a></li><li><a href=\"/feed.xml\">rss</a></li><li><a href=\"/git\">git</a></li><li><a href=\"/wiki\">wiki</a></li></ul></nav></header>", fp);
- fputs("\n<table id=\"git-title\"><tr>", fp);
- fputs("<td><h1>", fp);
+ fputs("\n<main id=\"git-content\">\n", fp);
+ fputs("<h1>", fp);
xmlencode(fp, strippedname, strlen(strippedname));
- fputs("</h1><span class=\"desc\">", fp);
+ fputs("</h1><p class=\"desc\">", fp);
xmlencode(fp, description, strlen(description));
- fputs("</span></td></tr>", fp);
+ fputs("</p>", fp);
if (cloneurl[0]) {
- fputs("<tr class=\"url\"><td>git clone <a href=\"", fp);
- xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */
- fputs("\">", fp);
- xmlencode(fp, cloneurl, strlen(cloneurl));
- fputs("</a></td></tr>", fp);
+ fputs("<p class=\"url\">git clone <a href=\"", fp);
+ xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */
+ fputs("\">", fp);
+ xmlencode(fp, cloneurl, strlen(cloneurl));
+ fputs("</a></p>", fp);
}
- fputs("<tr><td id=\"links\">\n", fp);
+ fputs("<table><tbody><tr><td id=\"links\">\n", fp);
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);
if (submodules)
- fprintf(fp, " | <a href=\"%sfile/%s.html\">Submodules</a>",
- relpath, submodules);
+ fprintf(fp, " | <a href=\"%sfile/%s.html\">Submodules</a>",
+ relpath, submodules);
if (readme)
- fprintf(fp, " | <a href=\"%sfile/%s.html\">README</a>",
- relpath, readme);
+ fprintf(fp, " | <a href=\"%sfile/%s.html\">README</a>",
+ relpath, readme);
if (license)
- fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>",
- relpath, license);
- fputs("</td></tr></table>\n<main id=\"git-content\">\n", fp);
+ fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>",
+ relpath, license);
+ fputs("</td></tr></tbody></table>", fp);
}
void