diff options
| author | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-11 22:02:20 +0200 |
|---|---|---|
| committer | Jason A. Dönerfield <no-replay@sl0p.foo> | 2026-07-11 22:19:08 +0200 |
| commit | f64bb3a19c276303f7502633ffa930a14aa883cc (patch) | |
| tree | 0734b6b680b0361b1dea916f7cddb2ff5de74b2f /shared.c | |
| parent | Bump version (diff) | |
| download | cgit-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
