mirror of
https://git.zx2c4.com/cgit
synced 2025-06-23 18:28:40 +02:00
Add support for 'noheader' option
This option can be used to disable the standard cgit page header, which might be useful in combination with the 'embedded' option. Suggested-by: Mark Constable <markc@renta.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
0cbb50841a
commit
ef0c6aadf7
3 changed files with 16 additions and 7 deletions
2
cgit.c
2
cgit.c
|
@ -49,6 +49,8 @@ void config_cb(const char *name, const char *value)
|
|||
ctx.cfg.virtual_root = "";
|
||||
} else if (!strcmp(name, "nocache"))
|
||||
ctx.cfg.nocache = atoi(value);
|
||||
else if (!strcmp(name, "noheader"))
|
||||
ctx.cfg.noheader = atoi(value);
|
||||
else if (!strcmp(name, "snapshots"))
|
||||
ctx.cfg.snapshots = cgit_parse_snapshots_mask(value);
|
||||
else if (!strcmp(name, "enable-index-links"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue