stagit-5hif7y

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 588036e97e67c6c0fa6e95c1bda7c254f81d5502
parent 3b6d45328d84f91bd315aff9914693f460858e96
Author: 5hif7y <[email protected]>
Date:   Fri, 25 Apr 2025 03:32:43 -0300

added logo fallback

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

diff --git a/stagit.c b/stagit.c @@ -524,7 +524,8 @@ writeheader(FILE *fp, const char *title) fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", 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>", + //fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", + fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" onerror=\"this.onerror=null;this.src='..\\/logo.png';\" alt=\"\" width=\"32\" height=\"32\" /></a>", relpath, relpath); fputs("</td><td><h1>", fp); xmlencode(fp, strippedname, strlen(strippedname));