Add head-include configuration option. This patch adds an option to the configuration file, "head-include", which works just like "header" or "footer", except the content is put into the HTML's <head> tag.
Mark Lodato lodatom@gmail.com
Sun, 15 Mar 2009 00:11:54 -0400
3 files changed,
6 insertions(+),
1 deletions(-)
M
cgit.c
→
cgit.c
@@ -31,6 +31,8 @@ else if (!strcmp(name, "favicon"))
ctx.cfg.favicon = xstrdup(value); else if (!strcmp(name, "footer")) ctx.cfg.footer = xstrdup(value); + else if (!strcmp(name, "head-include")) + ctx.cfg.head_include = xstrdup(value); else if (!strcmp(name, "header")) ctx.cfg.header = xstrdup(value); else if (!strcmp(name, "logo"))