stagit

static git page generator (local tweaks)
git clone https://wehaveforgeathome.hates.computer/stagit.git
Log | Files | Refs | LICENSE

commit 107922ce2f0d0c96c8360834f60dda9c75f8607f
parent 48218dcb4b2ed338c7dff6d93cba90e6d3b9925e
Author: Ryan Wolf <johnwayne@pseudony.ms>
Date:   Thu, 17 Apr 2025 12:14:15 -0400

rm extra slash in link to parent dir

Diffstat:
Mstagit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stagit.c b/stagit.c @@ -519,7 +519,7 @@ writeheader(FILE *fp, const char *title) fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", baseurl); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", baseurl); fputs("</head>\n<body>\n<table><tr><td>", fp); - fprintf(fp, "<a href=\"%s/..\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", + fprintf(fp, "<a href=\"%s..\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", baseurl, baseurl); fprintf(fp, "</td><td><h1><a href=\"%s\">", baseurl); xmlencode(fp, strippedname, strlen(strippedname));