Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hjemli <larsh@hatman.(none)>2008-07-19 22:40:30 +0400
committerLars Hjemli <larsh@hatman.(none)>2008-07-19 22:47:39 +0400
commit502865a5ec40fed5f1f865cb34002aecaab8405e (patch)
treeab53ab68d6c56948502287ff3cdad45c409aebbb /ui-shared.c
parentde5e9281719809c5b07051faa88e95bd16e8d485 (diff)
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>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 8a00099..6f83d2a 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -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");
}