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:
Andy Green 2018-07-03 11:33:59 +08:00 committed by Jason A. Donenfeld
parent 91f25909b9
commit 093ac96970
4 changed files with 22 additions and 7 deletions

2
cgit.h
View file

@ -195,7 +195,6 @@ struct cgit_config {
char *cache_root;
char *clone_prefix;
char *clone_url;
char *css;
char *favicon;
char *footer;
char *head_include;
@ -206,6 +205,7 @@ struct cgit_config {
char *module_link;
char *project_list;
struct string_list readme;
struct string_list css;
char *robots;
char *root_title;
char *root_desc;