stagit

Fork of stagit - for personal repository
git clone git://git.dimitrijedobrota.com/stagit.git
Log | Files | Refs | README | LICENSE

commit 21d18278c52a0ab5f11106439b6817b53f959cb5
parent 8e2eec7d3989c0c575aa0125517695b398055732
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Sun,  8 Aug 2021 12:17:57 +0200

Add support for colors.css on top of style.css

Diffstat:
Mcreate.sh | 1+
Mpost-receive.sh | 1+
Mstagit-index.c | 1+
Mstagit.c | 1+
4 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/create.sh b/create.sh @@ -36,6 +36,7 @@ for dir in "${reposdir}/"*/; do # symlinks ln -sf log.html index.html ln -sf ../style.css style.css + ln -sf ../colors.css colors.css ln -sf ../logo.png logo.png ln -sf ../favicon.png favicon.png diff --git a/post-receive.sh b/post-receive.sh @@ -68,6 +68,7 @@ stagit -c "${cachefile}" -u "https://git.codemadness.nl/$d/" "${reposdir}/${r}" ln -sf log.html index.html ln -sf ../style.css style.css +ln -sf ../colors.css colors.css ln -sf ../logo.png logo.png echo "done" diff --git a/stagit-index.c b/stagit-index.c @@ -70,6 +70,7 @@ writeheader(FILE *fp) "<title>", fp); xmlencode(fp, description, strlen(description)); fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); + fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%scolors.css\" />\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 @@ -484,6 +484,7 @@ writeheader(FILE *fp, const char *title) name, relpath); fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed (tags)\" href=\"%stags.xml\" />\n", name, relpath); + fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%scolors.css\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); fputs("</head>\n<body>\n<table><tr><td>", fp); fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",