diff options
author | Andy Green <andy@warmcat.com> | 2018-07-03 05:33:59 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-12-19 16:49:09 +0100 |
commit | 093ac9697068833a15cae2dbbd5ffbc0203741c0 (patch) | |
tree | 32653fc7b87d4f91abad02dc11f6afc07f3fab28 /cgit.c | |
parent | 91f25909b9572ebdf3a0fed8224bf03d0d9bf3db (diff) | |
download | cgit-093ac9697068833a15cae2dbbd5ffbc0203741c0.tar.gz cgit-093ac9697068833a15cae2dbbd5ffbc0203741c0.tar.xz |
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) else if (!strcmp(name, "root-readme")) ctx.cfg.root_readme = xstrdup(value); else if (!strcmp(name, "css")) - ctx.cfg.css = xstrdup(value); + string_list_append(&ctx.cfg.css, xstrdup(value)); else if (!strcmp(name, "favicon")) ctx.cfg.favicon = xstrdup(value); else if (!strcmp(name, "footer")) @@ -378,7 +378,6 @@ static void prepare_context(void) ctx.cfg.case_sensitive_sort = 1; ctx.cfg.branch_sort = 0; ctx.cfg.commit_sort = 0; - ctx.cfg.css = "/cgit.css"; ctx.cfg.logo = "/cgit.png"; ctx.cfg.favicon = "/favicon.ico"; ctx.cfg.local_time = 0; |