mirror of
https://git.zx2c4.com/cgit
synced 2025-07-22 11:54:23 +02:00
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>
This commit is contained in:
parent
91f25909b9
commit
093ac96970
4 changed files with 22 additions and 7 deletions
3
cgit.c
3
cgit.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue