|
diff --git a/cgit.c b/cgit.c index 0deae12..8f154c9 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -16,24 +16,26 @@ |
16 | const char *cgit_version = CGIT_VERSION; |
16 | const char *cgit_version = CGIT_VERSION; |
17 | |
17 | |
18 | void config_cb(const char *name, const char *value) |
18 | void config_cb(const char *name, const char *value) |
19 | { |
19 | { |
20 | if (!strcmp(name, "root-title")) |
20 | if (!strcmp(name, "root-title")) |
21 | ctx.cfg.root_title = xstrdup(value); |
21 | ctx.cfg.root_title = xstrdup(value); |
22 | else if (!strcmp(name, "root-desc")) |
22 | else if (!strcmp(name, "root-desc")) |
23 | ctx.cfg.root_desc = xstrdup(value); |
23 | ctx.cfg.root_desc = xstrdup(value); |
24 | else if (!strcmp(name, "root-readme")) |
24 | else if (!strcmp(name, "root-readme")) |
25 | ctx.cfg.root_readme = xstrdup(value); |
25 | ctx.cfg.root_readme = xstrdup(value); |
26 | else if (!strcmp(name, "css")) |
26 | else if (!strcmp(name, "css")) |
27 | ctx.cfg.css = xstrdup(value); |
27 | ctx.cfg.css = xstrdup(value); |
| |
28 | else if (!strcmp(name, "footer")) |
| |
29 | ctx.cfg.footer = xstrdup(value); |
28 | else if (!strcmp(name, "logo")) |
30 | else if (!strcmp(name, "logo")) |
29 | ctx.cfg.logo = xstrdup(value); |
31 | ctx.cfg.logo = xstrdup(value); |
30 | else if (!strcmp(name, "index-header")) |
32 | else if (!strcmp(name, "index-header")) |
31 | ctx.cfg.index_header = xstrdup(value); |
33 | ctx.cfg.index_header = xstrdup(value); |
32 | else if (!strcmp(name, "index-info")) |
34 | else if (!strcmp(name, "index-info")) |
33 | ctx.cfg.index_info = xstrdup(value); |
35 | ctx.cfg.index_info = xstrdup(value); |
34 | else if (!strcmp(name, "logo-link")) |
36 | else if (!strcmp(name, "logo-link")) |
35 | ctx.cfg.logo_link = xstrdup(value); |
37 | ctx.cfg.logo_link = xstrdup(value); |
36 | else if (!strcmp(name, "module-link")) |
38 | else if (!strcmp(name, "module-link")) |
37 | ctx.cfg.module_link = xstrdup(value); |
39 | ctx.cfg.module_link = xstrdup(value); |
38 | else if (!strcmp(name, "virtual-root")) { |
40 | else if (!strcmp(name, "virtual-root")) { |
39 | ctx.cfg.virtual_root = trim_end(value, '/'); |
41 | ctx.cfg.virtual_root = trim_end(value, '/'); |
|