extra-head-content: introduce another option for meta tags

This is to support things like go-import meta tags, which are on a
per-repo basis.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
这个提交包含在:
Jason A. Donenfeld
2018-02-12 23:10:06 +01:00
父节点 c4fbb99cee
当前提交 b522a302c9
共有 5 个文件被更改,包括 12 次插入0 次删除

查看文件

@ -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("</head>\n");
html("<body>\n");
if (ctx.cfg.header)