From f64bb3a19c276303f7502633ffa930a14aa883cc Mon Sep 17 00:00:00 2001 From: "Jason A. Dönerfield" Date: Sat, 11 Jul 2026 22:02:20 +0200 Subject: ui-summary: optionally render the repo readme on the summary page Add enable-summary-readme (global + per-repo repo.enable-summary-readme, default off). When enabled, the configured readme is rendered inline below the repository info on the summary page, in addition to the standard about page. Refactor the readme-rendering core out of cgit_print_repo_readme() into a static print_readme() helper (no layout wrapper) so the about page and the summary page share it. --- shared.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shared.c') diff --git a/shared.c b/shared.c index a39394d..2c891be 100644 --- a/shared.c +++ b/shared.c @@ -68,6 +68,7 @@ struct cgit_repo *cgit_add_repo(const char *url) ret->enable_log_linecount = ctx.cfg.enable_log_linecount; ret->enable_remote_branches = ctx.cfg.enable_remote_branches; ret->enable_subject_links = ctx.cfg.enable_subject_links; + ret->enable_summary_readme = ctx.cfg.enable_summary_readme; ret->enable_html_serving = ctx.cfg.enable_html_serving; ret->max_stats = ctx.cfg.max_stats; ret->branch_sort = ctx.cfg.branch_sort; -- cgit v1.3.1-sl0p