diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-09-18 18:21:40 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-09-18 18:51:58 +0200 |
| commit | dca6d8d7b6bb61f303c17905dde4ecbde7ff1da5 (patch) | |
| tree | b887361db8c5e6f3eca8bee30ae23e076467c0c0 /data | |
| parent | b361d81f846ce90bdf242134e8531afc32becf3b (diff) | |
| download | phorkie-dca6d8d7b6bb61f303c17905dde4ecbde7ff1da5.tar.gz phorkie-dca6d8d7b6bb61f303c17905dde4ecbde7ff1da5.zip | |
add vcs-git links to html head, to support autodiscovery apart from DOAP - http://joeyh.name/rfc/rel-vcs/
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/display.htm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/display.htm b/data/templates/display.htm index 5bcb016..799f94d 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -5,6 +5,12 @@ {% block meta %} <link rel="meta" title="DOAP" type="application/rdf+xml" href="{{repo.getLink('doap')}}"/> +{% if repo.getCloneURL(true) %} + <link rel="vcs-git" href="{{repo.getCloneURL(true)}}" title="{{repo.getTitle}} git repository"/> +{% endif %} +{% if repo.getCloneURL(false) %} + <link rel="vcs-git" href="{{repo.getCloneURL(false)}}" title="{{repo.getTitle}} git repository"/> +{% endif %} {% endblock %} {% block content %} |
