diff --git a/ui-summary.c b/ui-summary.c
index 318148a..ad0b4a7 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -13,11 +13,6 @@
void cgit_print_summary()
{
- if (ctx.repo->readme) {
- html("
");
- html_include(ctx.repo->readme);
- html("
");
- }
html("");
cgit_print_branches(ctx.cfg.summary_branches);
html(" |
");
@@ -29,3 +24,12 @@ void cgit_print_summary()
}
html("
");
}
+
+void cgit_print_repo_readme()
+{
+ if (ctx.repo->readme) {
+ html("");
+ html_include(ctx.repo->readme);
+ html("
");
+ }
+}
diff --git a/ui-summary.h b/ui-summary.h
index 37aedd2..3e13039 100644
--- a/ui-summary.h
+++ b/ui-summary.h
@@ -2,5 +2,6 @@
#define UI_SUMMARY_H
extern void cgit_print_summary();
+extern void cgit_print_repo_readme();
#endif /* UI_SUMMARY_H */