summaryrefslogtreecommitdiffabout
path: root/cgit.c
authorLars Hjemli <hjemli@gmail.com>2009-01-29 20:27:39 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2009-01-29 20:27:39 (UTC)
commitb115955d71c50cd2d0065c45f3df6b02fa4730bd (patch) (side-by-side diff)
tree074182f3e305b4982a97c482ed5fbcc5c6d270a7 /cgit.c
parenta61871a18ffa9fc28e7ab0950415404350c8c857 (diff)
downloadcgit-b115955d71c50cd2d0065c45f3df6b02fa4730bd.zip
cgit-b115955d71c50cd2d0065c45f3df6b02fa4730bd.tar.gz
cgit-b115955d71c50cd2d0065c45f3df6b02fa4730bd.tar.bz2
Add support for a custom header
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index 608cab6..64d95f9 100644
--- a/cgit.c
+++ b/cgit.c
@@ -28,12 +28,14 @@ void config_cb(const char *name, const char *value)
else if (!strcmp(name, "css"))
ctx.cfg.css = xstrdup(value);
else if (!strcmp(name, "favicon"))
ctx.cfg.favicon = xstrdup(value);
else if (!strcmp(name, "footer"))
ctx.cfg.footer = xstrdup(value);
+ else if (!strcmp(name, "header"))
+ ctx.cfg.header = xstrdup(value);
else if (!strcmp(name, "logo"))
ctx.cfg.logo = xstrdup(value);
else if (!strcmp(name, "index-header"))
ctx.cfg.index_header = xstrdup(value);
else if (!strcmp(name, "index-info"))
ctx.cfg.index_info = xstrdup(value);