stagit

Personal fork of stagit.
git clone git://git.samirparikh.com/stagit
Log | Files | Refs | README | LICENSE

commit afd3b37b388479c873076a458b34c2bc65454370
parent 5322583d93eed127137ceb75f031f1347644aeb9
Author: Samir Parikh <siparikh@gmail.com>
Date:   Sat, 13 Nov 2021 10:58:01 -0500

update header function in stagit.c

Diffstat:
Mstagit.c | 37+++++++++++++++++--------------------
1 file changed, 17 insertions(+), 20 deletions(-)

diff --git a/stagit.c b/stagit.c @@ -496,44 +496,41 @@ writeheader(FILE *fp, const char *title) if (description[0]) fputs(" - ", fp); xmlencode(fp, description, strlen(description)); - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/svg+xml\" href=\"%slogo.png\" />\n", relpath); - fprintf(fp, "<link rel=\"alternate icon\" href=\"../%sfavicon.ico\" />\n", relpath); + fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n", - name, relpath); + name, relpath); fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed (tags)\" href=\"%stags.xml\" />\n", - name, relpath); - fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"../%sstyle.css\" />\n", relpath); - fputs("</head>\n<body>\n<div id=\"head\"><table><tr><td>", fp); - fprintf(fp, "<a class=\"logo\" href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", + name, relpath); + fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); + fputs("</head>\n<body>\n<table><tr><td>", fp); + fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", relpath, relpath); - fputs("</td><td><strong>", fp); + fputs("</td><td><h1>", fp); xmlencode(fp, strippedname, strlen(strippedname)); - fputs("</strong><span class=\"desc\"> - ", fp); + fputs("</h1><span class=\"desc\">", fp); xmlencode(fp, description, strlen(description)); - fputs("</span>\n", fp); + fputs("</span></td></tr>", fp); if (cloneurl[0]) { - fputs("<p class=\"url\">git clone <a href=\"", fp); + fputs("<tr class=\"url\"><td></td><td>git clone <a href=\"", fp); xmlencode(fp, cloneurl, strlen(cloneurl)); fputs("\">", fp); xmlencode(fp, cloneurl, strlen(cloneurl)); - fputs("</a></p>\n", fp); + fputs("</a></td></tr>", fp); } - fputs("</td></tr></table>\n<p>", fp); - if (readme) - fprintf(fp, "<a href=\"%sabout.html\">About</a> | ", relpath); + fputs("<tr><td></td><td>\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); + if (readme) + fprintf(fp, " | <a href=\"%sfile/%s.html\">README</a>", + relpath, readme); if (license) - fprintf(fp, " | <a href=\"%sfile/%s.html\">License</a>", + fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>", relpath, license); - if (contribute) - fprintf(fp, " | <a href=\"%sfile/%s.html\">Contribute</a>", - relpath, contribute); - fputs("</p>\n</div>\n<hr/>\n<div id=\"content\">\n", fp); + fputs("</td></tr></table>\n<hr/>\n<div id=\"content\">\n", fp); } void