diff --git a/ui-repolist.c b/ui-repolist.c index 98009c0..200640c 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -61,12 +61,6 @@ int is_match(struct cgit_repo *repo) void print_header(int columns) { - if (ctx.cfg.index_header) { - htmlf("", - columns); - html_include(ctx.cfg.index_header); - html(""); - } html("" "Name" "Description" @@ -90,6 +84,9 @@ void cgit_print_repolist() cgit_print_docstart(&ctx); cgit_print_pageheader(&ctx); + if (ctx.cfg.index_header) + html_include(ctx.cfg.index_header); + html(""); for (i=0; i