aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
authorAndy Green2018-06-23 18:25:53 +0800
committerYigit Sever2023-07-21 03:04:16 +0300
commitf762d291b01eeda27fa9239c99efd607d5bf7a14 (patch)
tree2f76e1c7a5bdeac71eaef42f76cb3918a913a09d /cgit.c
parentf466091a0d5717d61853965aa3eb1441efdff007 (diff)
downloadcgit-f762d291b01eeda27fa9239c99efd607d5bf7a14.tar.gz
cgit-f762d291b01eeda27fa9239c99efd607d5bf7a14.tar.bz2
cgit-f762d291b01eeda27fa9239c99efd607d5bf7a14.zip
config: add js
Just like the config allows setting css URL path, add a config for setting the js URL path Signed-off-by: Andy Green <andy@warmcat.com> Reviewed-by: John Keeping <john@keeping.me.uk> Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index 75d9926..57d7097 100644
--- a/cgit.c
+++ b/cgit.c
@@ -143,6 +143,8 @@ static void config_cb(const char *name, const char *value)
143 ctx.cfg.root_readme = xstrdup(value); 143 ctx.cfg.root_readme = xstrdup(value);
144 else if (!strcmp(name, "css")) 144 else if (!strcmp(name, "css"))
145 string_list_append(&ctx.cfg.css, xstrdup(value)); 145 string_list_append(&ctx.cfg.css, xstrdup(value));
146 else if (!strcmp(name, "js"))
147 string_list_append(&ctx.cfg.js, xstrdup(value));
146 else if (!strcmp(name, "favicon")) 148 else if (!strcmp(name, "favicon"))
147 ctx.cfg.favicon = xstrdup(value); 149 ctx.cfg.favicon = xstrdup(value);
148 else if (!strcmp(name, "footer")) 150 else if (!strcmp(name, "footer"))