From 880351bd0ba746bbf276425341598afa905d552f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 2 Oct 2026 07:26:43 +0300 Subject: ui-shared: Use repo logo as favicon when available --- ui-shared.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui-shared.c b/ui-shared.c index 35202ed..9ef7980 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -833,7 +833,16 @@ void cgit_print_docstart(void) else emit_js_link(NULL, "/cgit.js"); +#ifdef __CGIT_LOGO_FAVICON + if (ctx.repo && ctx.repo->logo && *ctx.repo->logo) { + html("\n"); + } + else if (ctx.cfg.favicon && *ctx.cfg.favicon) { +#else if (ctx.cfg.favicon && *ctx.cfg.favicon) { +#endif html("\n"); -- cgit v1.3.1-23-gd82d