stagit

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

commit e04965f95a6517fb1d240b78656b08c9c8f11240
parent 107922ce2f0d0c96c8360834f60dda9c75f8607f
Author: Ryan Wolf <johnwayne@pseudony.ms>
Date:   Thu, 17 Apr 2025 12:19:17 -0400

use same css, favicon, logo for whole site

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

diff --git a/stagit.c b/stagit.c @@ -510,16 +510,16 @@ 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=\"%sfavicon.png\" />\n", baseurl); + fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%s../favicon.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); fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp); xmlencode(fp, name, strlen(name)); fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", baseurl); - fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", baseurl); + fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%s../style.css\" />\n", baseurl); 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=\"%s../logo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", baseurl, baseurl); fprintf(fp, "</td><td><h1><a href=\"%s\">", baseurl); xmlencode(fp, strippedname, strlen(strippedname));