From 8b86653c2471e04429ae9fec19dc33fcb5e5c059 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 11 Feb 2016 17:16:21 +0100 Subject: [PATCH] Make phorkie search engine friendlier Tell crawlers which links they should not follow. Helps my own search engine "phinde" --- data/templates/display-file.htm | 2 +- data/templates/display-foot.htm | 5 +++-- data/templates/display-head.htm | 2 +- data/templates/display-sidebar-history.htm | 2 +- data/templates/revision.htm | 4 ++++ 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/data/templates/display-file.htm b/data/templates/display-file.htm index adffbc7..32dbced 100644 --- a/data/templates/display-file.htm +++ b/data/templates/display-file.htm @@ -4,7 +4,7 @@ {% for toolinfo in file.getToolInfos %} {{toolinfo.getTitle}} {% endfor %} - +

{{file.getFilename}}

{{file.getRenderedContent(toolres)|raw}} diff --git a/data/templates/display-foot.htm b/data/templates/display-foot.htm index 6324509..bf9605e 100644 --- a/data/templates/display-foot.htm +++ b/data/templates/display-foot.htm @@ -1,13 +1,14 @@
diff --git a/data/templates/display-head.htm b/data/templates/display-head.htm index 8c16908..61961ab 100644 --- a/data/templates/display-head.htm +++ b/data/templates/display-head.htm @@ -3,7 +3,7 @@

{{repo.getTitle}}

diff --git a/data/templates/display-sidebar-history.htm b/data/templates/display-sidebar-history.htm index 0e99b2f..8db30e9 100644 --- a/data/templates/display-sidebar-history.htm +++ b/data/templates/display-sidebar-history.htm @@ -8,7 +8,7 @@ {% endfor %} {% endspaceless %} - {{commit.hash|slice(0, 6)}} + {{commit.hash|slice(0, 6)}} {{commit.committerName}} diff --git a/data/templates/revision.htm b/data/templates/revision.htm index 1462a4a..bb9d3f6 100644 --- a/data/templates/revision.htm +++ b/data/templates/revision.htm @@ -1,6 +1,10 @@ {% extends "base.htm" %} {% block title %}{{repo.getTitle}} - revision {{repo.hash}}{% endblock %} +{% block meta %} + +{% endblock %} + {% block content %} {% include 'revision-head.htm' %} -- 2.30.2