As described at https://joeyh.name/rfc/rel-vcs/.
Signed-off-by: John Keeping <john@keeping.me.uk>
+static void print_rel_vcs_link(const char *url)
+{
+ html("<link rel='vcs-git' href='");
+ html_attr(url);
+ html("' title='");
+ html_attr(ctx.repo->name);
+ html(" Git repository'/>\n");
+}
+
void cgit_print_docstart(void)
{
if (ctx.cfg.embedded) {
void cgit_print_docstart(void)
{
if (ctx.cfg.embedded) {
html("' type='application/atom+xml'/>\n");
strbuf_release(&sb);
}
html("' type='application/atom+xml'/>\n");
strbuf_release(&sb);
}
+ if (ctx.repo)
+ cgit_add_clone_urls(print_rel_vcs_link);
if (ctx.cfg.head_include)
html_include(ctx.cfg.head_include);
html("</head>\n");
if (ctx.cfg.head_include)
html_include(ctx.cfg.head_include);
html("</head>\n");