Make phorkie search engine friendlier
[phorkie.git] / data / templates / display.htm
index e02129600a7ff67cb7c836ad72fb202d58e12f37..16e1b0871cfe5476abdf6f9259c0979cf848af73 100644 (file)
@@ -1,10 +1,16 @@
 {% extends "base.htm" %}
-{% block title %}
- {%if repo.getDescription %}
-  {{repo.getDescription}}
- {%else%}
-  {{repo.id}}
- {%endif%}
+{% block title %}{{repo.getTitle}}{% endblock %}
+
+{% block meta %}
+<link rel="meta" title="DOAP" type="application/rdf+xml" href="{{repo.getLink('doap')}}"/>
+  <link rel="alternate" title="oEmbed" type="application/json+oembed" href="{{repo.getLink('oembed-json', null, true)}}" />
+  <link rel="alternate" title="oEmbed" type="application/xml+oembed" href="{{repo.getLink('oembed-xml', null, true)}}" />
+{% if repo.getCloneURL(true) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(true)}}" title="{{repo.getTitle}}"/>
+{% endif %}
+{% if repo.getCloneURL(false) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(false)}}" title="{{repo.getTitle}}"/>
+{% endif %}
 {% endblock %}
 
 {% block content %}
@@ -18,5 +24,8 @@
 {% endblock %}
 
 {% block sidebar %}
-sidebar FIXME
+ {% include 'display-sidebar-owner.htm' %}
+ {% include 'display-sidebar-fork.htm' %}
+ {% include 'display-sidebar-history.htm' %}
+ {% include 'display-sidebar-urls.htm' %}
 {% endblock %}