blob: 83a5f9323f49353bab190647aaef595e70215c80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD$
--- cgit.c.orig 2021-07-20 20:02:12.110866300 +0000
+++ cgit.c
@@ -141,6 +141,8 @@ static void config_cb(const char *name,
ctx.cfg.root_desc = xstrdup(value);
else if (!strcmp(name, "root-readme"))
ctx.cfg.root_readme = xstrdup(value);
+ else if (!strcmp(name, "index-header"))
+ ctx.cfg.index_header = xstrdup(value);
else if (!strcmp(name, "css"))
ctx.cfg.css = xstrdup(value);
else if (!strcmp(name, "favicon"))
--- cgit.h.orig 2020-03-13 23:49:52.000000000 +0000
+++ cgit.h
@@ -200,6 +200,7 @@ struct cgit_config {
char *footer;
char *head_include;
char *header;
+ char *index_header;
char *logo;
char *logo_link;
char *mimetype_file;
--- ui-repolist.c.orig 2020-03-13 23:49:52.000000000 +0000
+++ ui-repolist.c
@@ -288,6 +288,9 @@ void cgit_print_repolist(void)
cgit_print_docstart();
cgit_print_pageheader();
+ if (ctx.cfg.index_header)
+ html_include(ctx.cfg.index_header);
+
if (ctx.qry.sort)
sorted = sort_repolist(ctx.qry.sort);
else if (ctx.cfg.section_sort)
|