stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit 49912d3b8bb331c93bade7f1718f4a2b844bacc2 parent 87b587c00ae97509f2426718d263e3e073a38de0 Author: Jul <jul@9o.is> Date: Tue, 6 Jan 2026 10:52:28 -0500 get favicon from root path Diffstat:
| M | stagit-index.c | | | 5 | ++--- |
| M | stagit.c | | | 2 | +- |
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c @@ -99,9 +99,8 @@ writeheader(FILE *fp) "<html>\n<head>\n" "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n" - "<title>", fp); - xmlencode(fp, description, strlen(description)); - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); + "<title>Git Repositories - qhis</title>\n", fp); + fputs("<link rel=\"icon\" type=\"image/png\" href=\"/favicon.png\" />\n", fp); fputs("<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\" />\n", fp); fputs("</head>\n<body>\n", fp); fputs("<table>\n<tr><td><span class=\"desc\">\n", fp); diff --git a/stagit.c b/stagit.c @@ -511,7 +511,7 @@ 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/png\" href=\"%sfavicon.png\" />\n", relpath); + fputs("</title>\n<link rel=\"icon\" type=\"image/png\" href=\"/favicon.png\" />\n", fp); fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp); xmlencode(fp, name, strlen(name)); fprintf(fp, " Atom Feed\" href=\"%satom.xml\" />\n", relpath);