diff options
author | Andy Green | 2018-07-03 11:33:59 +0800 |
---|---|---|
committer | Yigit Sever | 2023-07-21 03:03:51 +0300 |
commit | f466091a0d5717d61853965aa3eb1441efdff007 (patch) | |
tree | 1b906a5012e27d580e1f82e39c3199398011515d /cgit.c | |
parent | 319e4e08ecfdabecce1304b2c60acb09d9d2a736 (diff) | |
download | cgit-f466091a0d5717d61853965aa3eb1441efdff007.tar.gz cgit-f466091a0d5717d61853965aa3eb1441efdff007.tar.bz2 cgit-f466091a0d5717d61853965aa3eb1441efdff007.zip |
css: change to be a list
Without changing the default behaviour of including
/cgit.css if nothing declared, allow the "css" config
to be given multiple times listing one or more
alternative URL paths to be included in the document
head area.
Signed-off-by: Andy Green <andy@warmcat.com>
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -142,7 +142,7 @@ static void config_cb(const char *name, const char *value) | |||
142 | else if (!strcmp(name, "root-readme")) | 142 | else if (!strcmp(name, "root-readme")) |
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 | ctx.cfg.css = xstrdup(value); | 145 | string_list_append(&ctx.cfg.css, xstrdup(value)); |
146 | else if (!strcmp(name, "favicon")) | 146 | else if (!strcmp(name, "favicon")) |
147 | ctx.cfg.favicon = xstrdup(value); | 147 | ctx.cfg.favicon = xstrdup(value); |
148 | else if (!strcmp(name, "footer")) | 148 | else if (!strcmp(name, "footer")) |
@@ -378,7 +378,6 @@ static void prepare_context(void) | |||
378 | ctx.cfg.case_sensitive_sort = 1; | 378 | ctx.cfg.case_sensitive_sort = 1; |
379 | ctx.cfg.branch_sort = 0; | 379 | ctx.cfg.branch_sort = 0; |
380 | ctx.cfg.commit_sort = 0; | 380 | ctx.cfg.commit_sort = 0; |
381 | ctx.cfg.css = "/cgit.css"; | ||
382 | ctx.cfg.logo = "/cgit.png"; | 381 | ctx.cfg.logo = "/cgit.png"; |
383 | ctx.cfg.favicon = "/favicon.ico"; | 382 | ctx.cfg.favicon = "/favicon.ico"; |
384 | ctx.cfg.local_time = 0; | 383 | ctx.cfg.local_time = 0; |