Add repo description to summary page title
Makes it easier to find repos in the history of browsers that save titles.

Potentially makes web search engine results more useful.
2 files changed, 5 insertions(+), 1 deletions(-)

M hgsrht/templates/repo.html
M hgsrht/templates/summary.html
M hgsrht/templates/repo.html +1 -1
@@ 7,7 7,7 @@ 
     /!\       Mercurial 4.8 or newer is required.         /!\
     /!\  Alternatively, you can clone the repo with SSH.  /!\
   -->
-  <title>{{owner.canonical_name}}/{{repo.name}} {% if scmpagetitle %}{{scmpagetitle}} {% endif %}- {{cfg("sr.ht", "site-name")}} {{scmname}}</title>
+  <title>{{owner.canonical_name}}/{{repo.name}} {% if scmpagetitle %}{{scmpagetitle}} {% else %}{% block repo_title %}{% endblock %}{% endif %}- {{cfg("sr.ht", "site-name")}} {{scmname}}</title>
 {% endblock %}
 
 {% block head %}

          
M hgsrht/templates/summary.html +4 -0
@@ 1,5 1,9 @@ 
 {% extends "repo.html" %}
 
+{% if repo.description %}
+{% block repo_title %}- {{ repo.description }} {% endblock %}
+{% endif %}
+
 {% block content %}
 {% include "partials/scmsummary.html" %}
 {% endblock %}