aboutsummaryrefslogtreecommitdiffstats
path: root/shared.c
diff options
context:
space:
mode:
authorJason A. Dönerfield <no-replay@sl0p.foo>2026-07-11 22:02:20 +0200
committerJason A. Dönerfield <no-replay@sl0p.foo>2026-07-11 22:19:08 +0200
commitf64bb3a19c276303f7502633ffa930a14aa883cc (patch)
tree0734b6b680b0361b1dea916f7cddb2ff5de74b2f /shared.c
parentBump version (diff)
downloadcgit-f64bb3a19c276303f7502633ffa930a14aa883cc.tar.gz
cgit-f64bb3a19c276303f7502633ffa930a14aa883cc.tar.xz
cgit-f64bb3a19c276303f7502633ffa930a14aa883cc.zip
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.
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c1
1 files changed, 1 insertions, 0 deletions
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;