stagit-remove-favicon.diff (2346B)
1 From 917d61a0b33b150ef8778cdf872d6dfecbfa3215 Mon Sep 17 00:00:00 2001 2 From: Riaz <riaz@riazj.com> 3 Date: Sun, 7 Sep 2025 20:24:36 -0700 4 Subject: [PATCH] Remove favicon and logo 5 6 --- 7 stagit-index.c | 4 +--- 8 stagit.c | 4 +--- 9 2 files changed, 2 insertions(+), 6 deletions(-) 10 11 diff --git a/stagit-index.c b/stagit-index.c 12 index 6402296..be7d6af 100644 13 --- a/stagit-index.c 14 +++ b/stagit-index.c 15 @@ -101,11 +101,9 @@ writeheader(FILE *fp) 16 "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n" 17 "<title>", fp); 18 xmlencode(fp, description, strlen(description)); 19 - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); 20 + fputs("</title>\n<link rel=\"icon\" href=\"data:,\" />\n", fp); 21 fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); 22 fputs("</head>\n<body>\n", fp); 23 - fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n" 24 - "<td><span class=\"desc\">", relpath); 25 xmlencode(fp, description, strlen(description)); 26 fputs("</span></td></tr><tr><td></td><td>\n" 27 "</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n" 28 diff --git a/stagit.c b/stagit.c 29 index 03f0c09..dbc622d 100644 30 --- a/stagit.c 31 +++ b/stagit.c 32 @@ -511,7 +511,7 @@ writeheader(FILE *fp, const char *title) 33 if (description[0]) 34 fputs(" - ", fp); 35 xmlencode(fp, description, strlen(description)); 36 - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); 37 + fputs("</title>\n<link rel=\"icon\" href=\"data:,\" />\n", fp); 38 fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp); 39 xmlencode(fp, name, strlen(name)); 40 fprintf(fp, " Atom Feed\" href=\"%satom.xml\" />\n", relpath); 41 @@ -520,8 +520,6 @@ writeheader(FILE *fp, const char *title) 42 fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath); 43 fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); 44 fputs("</head>\n<body>\n<table><tr><td>", fp); 45 - fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", 46 - relpath, relpath); 47 fputs("</td><td><h1>", fp); 48 xmlencode(fp, strippedname, strlen(strippedname)); 49 fputs("</h1><span class=\"desc\">", fp); 50 -- 51 2.51.0 52