aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorJason A. Dönerfield <no-replay@sl0p.foo>2026-07-18 21:16:06 +0200
committerJason A. Dönerfield <no-replay@sl0p.foo>2026-07-18 21:31:00 +0200
commit017c14bff28cbf9823a3bd9c63f8d283d64a9c51 (patch)
treea58864c0c07306a6e02dd77c65544d88df90361f /ui-shared.c
parentmd2html: do not loosen tight lists with multi-line items (diff)
downloadcgit-017c14bff28cbf9823a3bd9c63f8d283d64a9c51.tar.gz
cgit-017c14bff28cbf9823a3bd9c63f8d283d64a9c51.tar.xz
cgit-017c14bff28cbf9823a3bd9c63f8d283d64a9c51.zip
ui-shared: signal the sl0p fork in the footer + generator meta
Append a "sl0p fork" link (to git.sl0p.foo/cgit.git) to the default footer after the generated-by cgit/git attribution, and tag the <meta name=generator> as "cgit <ver> (sl0p fork)". Keeps upstream attribution intact.
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index df52a9b..86767dd 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -818,7 +818,7 @@ void cgit_print_docstart(void)
html("<title>");
html_txt(ctx.page.title);
html("</title>\n");
- htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
+ htmlf("<meta name='generator' content='cgit %s (sl0p fork)'/>\n", cgit_version);
if (ctx.cfg.robots && *ctx.cfg.robots)
htmlf("<meta name='robots' content='%s'/>\n", ctx.cfg.robots);
@@ -880,6 +880,7 @@ void cgit_print_docend(void)
htmlf("<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit %s</a> "
"(<a href='https://git-scm.com/'>git %s</a>) at ", cgit_version, git_version_string);
html_txt(show_date(time(NULL), 0, cgit_date_mode(DATE_ISO8601)));
+ html(" &mdash; <a href='https://git.sl0p.foo/cgit.git/'>sl0p fork</a>");
html("</div>\n");
}
html("</div> <!-- id=cgit -->\n");