stagit

static git page generator
git clone git://mfeller.io/stagit.git
Log | Files | Refs | README | LICENSE

commit ff8c626b65a425133b5ddfdc0db405281e49f1f9
parent 467dfeb8f4bf2dd1ddb69e5c9592147acb425aab
Author: Mark Feller <mfeller@recurly.com>
Date:   Mon, 30 Mar 2020 22:45:25 -0600

use a top level logo and style sheet

Signed-off-by: Mark Feller <mfeller@recurly.com>

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

diff --git a/stagit.c b/stagit.c @@ -355,10 +355,10 @@ writeheader(FILE *fp, const char *title) fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n", name, relpath); - fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); + fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\" />\n"); fputs("</head>\n<body>\n<table><tr><td>", fp); - fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", - relpath, relpath); + fprintf(fp, "<a href=\"../%s\"><img src=\"/logo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", + relpath); fputs("</td><td><h1>", fp); xmlencode(fp, strippedname, strlen(strippedname)); fputs("</h1><span class=\"desc\">", fp);