diff options
Diffstat (limited to 'cgit.c')
| -rw-r--r-- | cgit.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -161,6 +161,8 @@ static void config_cb(const char *name, const char *value) ctx.cfg.root_readme = xstrdup(value); else if (!strcmp(name, "root-coc")) ctx.cfg.root_coc = xstrdup(value); + else if (!strcmp(name, "root-cla")) + ctx.cfg.root_cla = xstrdup(value); else if (!strcmp(name, "css")) string_list_append(&ctx.cfg.css, xstrdup(value)); else if (!strcmp(name, "js")) @@ -1075,7 +1077,8 @@ static int calc_ttl(void) if (!ctx.qry.page) return ctx.cfg.cache_repo_ttl; - if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc")) + if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc") || + !strcmp(ctx.qry.page, "cla")) return ctx.cfg.cache_about_ttl; if (!strcmp(ctx.qry.page, "snapshot")) |
