stagit

static git page generator (local tweaks)
git clone https://wehaveforgeathome.hates.computer/stagit.git
Log | Files | Refs | LICENSE

commit e4700633d23f08f8dd7edb5560412df571ab8a04
parent e04965f95a6517fb1d240b78656b08c9c8f11240
Author: Ryan Wolf <johnwayne@pseudony.ms>
Date:   Thu, 17 Apr 2025 12:33:42 -0400

replace logo, use it for favicon

Diffstat:
Dfavicon.png | 0
Mlogo.png | 0
Mstagit-index.c | 2+-
Mstagit.c | 2+-
4 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/favicon.png b/favicon.png Binary files differ. diff --git a/logo.png b/logo.png Binary files differ. diff --git a/stagit-index.c b/stagit-index.c @@ -101,7 +101,7 @@ writeheader(FILE *fp) "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n" "<title>", fp); xmlencode(fp, description, strlen(description)); - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); + fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%slogo.png\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); fputs("</head>\n<body>\n", fp); fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n" diff --git a/stagit.c b/stagit.c @@ -510,7 +510,7 @@ writeheader(FILE *fp, const char *title) if (description[0]) fputs(" - ", fp); xmlencode(fp, description, strlen(description)); - fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%s../favicon.png\" />\n", baseurl); + fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%s../logo.png\" />\n", baseurl); fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp); xmlencode(fp, name, strlen(name)); fprintf(fp, " Atom Feed\" href=\"%satom.xml\" />\n", baseurl);