mirror of
https://git.zx2c4.com/cgit
synced 2025-08-30 22:05:08 +00:00
Add a favicon option to cgitrc
This option is used to specify a shortcut icon on all cgit pages. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
@@ -437,6 +437,11 @@ void cgit_print_docstart(struct cgit_context *ctx)
|
||||
html("<link rel='stylesheet' type='text/css' href='");
|
||||
html_attr(ctx->cfg.css);
|
||||
html("'/>\n");
|
||||
if (ctx->cfg.favicon) {
|
||||
html("<link rel='shortcut icon' href='");
|
||||
html_attr(ctx->cfg.favicon);
|
||||
html("'/>\n");
|
||||
}
|
||||
html("</head>\n");
|
||||
html("<body>\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user