stagit

static git page generator
git clone https://git.awy.one/stagit
Log | Files | Refs | README | LICENSE

commit 74ad79351495dd5c8f6a8133e30555927a5ca7ee
parent 3284891ea90c1b117b359b0161bb5682b4566439
Author: awy <awy@awy.one>
Date:   Sun, 26 Apr 2026 19:04:52 +0300

fix image preview path

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

diff --git a/stagit.c b/stagit.c @@ -1045,7 +1045,7 @@ writeblob(git_object *obj, const char *fpath, const char *rpath, const char *fil !strcmp(fext, ".svg") || !strcmp(fext, ".webp") || !strcmp(fext, ".avif"))) - fprintf(fp, "<a href=\"/%s/plain/%s\"><img id=\"blob-img\" src=\"/%s/plain/%s\" /></a>\n", + fprintf(fp, "<a href=\"%s%s\"><img id=\"blob-img\" src=\"%s%s\" /></a>\n", relpath, rpath, relpath, rpath); else fputs("<p>Binary file.</p>\n", fp);