From 61e44668b502f216b49966b632a272b217fd763d Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 19 Jul 2026 21:48:50 -1000 Subject: Emit a conforming rel=icon for the favicon link --- cgitrc.5.txt | 7 ++++--- source/ui-shared.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cgitrc.5.txt b/cgitrc.5.txt index afad0d5..b5f1cdb 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt @@ -250,9 +250,10 @@ enable-markdown:: Default value: "1". favicon:: - Url used as link to a shortcut icon for cgit. It is suggested to use - the value "/favicon.ico" since certain browsers will ignore other - values. Default value: "/favicon.ico". + Url used as link to the icon for cgit. Any path works, but keeping + the value "/favicon.ico" is still worthwhile, since clients that do + not parse the page head probe that path directly. Default value: + "/favicon.ico". footer:: The content of the file specified with this option will be included diff --git a/source/ui-shared.c b/source/ui-shared.c index 477314c..7687ae1 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -838,7 +838,7 @@ void cgit_print_docstart(void) emit_js_link(NULL, "/cgit.js"); if (ctx.cfg.favicon && *ctx.cfg.favicon) { - html("\n"); } -- cgit 2.12.1