X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c712d5ac434b9ee8cb4e63a173a2538e1878637f..b522a302c9c4fb9fd9e1ea829ee990afc74980ca:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index 8a786e0..9a2e382 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -775,6 +775,8 @@ void cgit_print_docstart(void) cgit_add_clone_urls(print_rel_vcs_link); if (ctx.cfg.head_include) html_include(ctx.cfg.head_include); + if (ctx.repo && ctx.repo->extra_head_content) + html(ctx.repo->extra_head_content); html("\n"); html("\n"); if (ctx.cfg.header) @@ -977,8 +979,6 @@ static void print_header(void) } else { if (ctx.cfg.root_desc) html_txt(ctx.cfg.root_desc); - else if (ctx.cfg.index_info) - html_include(ctx.cfg.index_info); } html("\n"); } @@ -1127,7 +1127,7 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, prefixlen = filename.len; for (f = cgit_snapshot_formats; f->suffix; f++) { - if (!(repo->snapshots & f->bit)) + if (!(repo->snapshots & cgit_snapshot_format_bit(f))) continue; strbuf_setlen(&filename, prefixlen); strbuf_addstr(&filename, f->suffix);