2
0
mirror of https://git.zx2c4.com/cgit synced 2025-08-31 22:35:08 +00: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:
Lars Hjemli
2009-08-09 13:27:21 +02:00
parent e1782fff8a
commit 537c05f138
6 changed files with 28 additions and 2 deletions

View File

@@ -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>");
}