commit ef6a481323ec899c03aacbe6a2a1a029c19fb0b0
parent 4f961cf4859154f0570abe0406c223171d8a9ac2
Author: 5hif7y <[email protected]>
Date: Fri, 25 Apr 2025 23:52:57 -0300
added style fallback
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c
@@ -522,7 +522,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);
+ fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" onerror=\"this.onerror=null;this.src='/style.css';\" />\n", relpath);
fputs("</head>\n<body>\n<table><tr><td>", fp);
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);