stagit

static git repository generator

git clone https://9o.is/git/stagit.git

commit 51d8747e541065b1237f2c033b978b15ec6b037e
parent e77e3a37d7496a5517bced2260ded715c3ef2264
Author: Jul <jul@9o.is>
Date:   Tue,  6 Jan 2026 10:31:58 -0500

get styles from root path

Diffstat:
Mstagit-index.c | 2+-
Mstagit.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -102,7 +102,7 @@ writeheader(FILE *fp) "<title>", fp); xmlencode(fp, description, strlen(description)); fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); - fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); + 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); xmlencode(fp, description, strlen(description)); diff --git a/stagit.c b/stagit.c @@ -518,7 +518,7 @@ writeheader(FILE *fp, const char *title) fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp); xmlencode(fp, name, strlen(name)); fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath); - fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); + fputs("<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\" />\n", fp); fputs("</head>\n<body>\n<table><tr>", fp); fputs("<td><h1>", fp); xmlencode(fp, strippedname, strlen(strippedname));