mirror of
https://git.zx2c4.com/cgit
synced 2025-09-01 15:25:33 +02:00
Add 'about-filter' and 'repo.about-filter' options
These options can be used to execute a filter command on each about-page, both top-level and for each repository (repo.about-filter can be used to override the current about-filter). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
e1782fff8a
commit
537c05f138
6 changed files with 28 additions and 2 deletions
|
@ -83,6 +83,10 @@ void cgit_print_repo_readme(char *path)
|
|||
} else
|
||||
tmp = ctx.repo->readme;
|
||||
html("<div id='summary'>");
|
||||
if (ctx.repo->about_filter)
|
||||
cgit_open_filter(ctx.repo->about_filter);
|
||||
html_include(tmp);
|
||||
if (ctx.repo->about_filter)
|
||||
cgit_close_filter(ctx.repo->about_filter);
|
||||
html("</div>");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue