diff options
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | ui-shared.c | 9 |
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("<link rel='icon' href='"); + html_attr(ctx.repo->logo); + html("' />\n"); + } + else if (ctx.cfg.favicon && *ctx.cfg.favicon) { +#else if (ctx.cfg.favicon && *ctx.cfg.favicon) { +#endif html("<link rel='shortcut icon' href='"); html_attr(ctx.cfg.favicon); html("'/>\n"); |
