diff options
author | Andy Green | 2018-06-23 18:25:53 +0800 |
---|---|---|
committer | Yigit Sever | 2023-07-21 03:04:16 +0300 |
commit | f762d291b01eeda27fa9239c99efd607d5bf7a14 (patch) | |
tree | 2f76e1c7a5bdeac71eaef42f76cb3918a913a09d /cgit.c | |
parent | f466091a0d5717d61853965aa3eb1441efdff007 (diff) | |
download | cgit-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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")) |