From: John Keeping Date: Fri, 1 Aug 2014 21:14:19 +0000 (+0100) Subject: ui-shared: add rel-vcs microformat links to HTML header X-Git-Tag: v0.11.0~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c53ebfb57a5dba8fc65b2f99ebbfb6356666e34;p=cgit ui-shared: add rel-vcs microformat links to HTML header As described at https://joeyh.name/rfc/rel-vcs/. Signed-off-by: John Keeping --- diff --git a/ui-shared.c b/ui-shared.c index 4e317d0..cd97ffb 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -660,6 +660,15 @@ void cgit_print_http_headers(void) exit(0); } +static void print_rel_vcs_link(const char *url) +{ + html("\n"); +} + void cgit_print_docstart(void) { if (ctx.cfg.embedded) { @@ -698,6 +707,8 @@ void cgit_print_docstart(void) 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("\n");