diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-02-11 17:16:21 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-02-11 17:16:21 +0100 |
| commit | 8b86653c2471e04429ae9fec19dc33fcb5e5c059 (patch) | |
| tree | 1903ef2319bac21d68d74d1c1f5756f6d467768c /data | |
| parent | 1f006007edcc362dacfe328ed1a87d31f2f653c8 (diff) | |
| download | phorkie-8b86653c2471e04429ae9fec19dc33fcb5e5c059.tar.gz phorkie-8b86653c2471e04429ae9fec19dc33fcb5e5c059.zip | |
Make phorkie search engine friendlier
Tell crawlers which links they should not follow.
Helps my own search engine "phinde"
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/display-file.htm | 2 | ||||
| -rw-r--r-- | data/templates/display-foot.htm | 5 | ||||
| -rw-r--r-- | data/templates/display-head.htm | 2 | ||||
| -rw-r--r-- | data/templates/display-sidebar-history.htm | 2 | ||||
| -rw-r--r-- | 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 %} <a class="btn btn-mini" href="{{toolinfo.getLink(file)}}" style="float: right;">{{toolinfo.getTitle}}</a> {% endfor %} - <a class="btn btn-mini" href="{{repo.getLink('edit', file.getFilename)}}" style="float: right;" title="edit"><i class="icon-edit"></i></a> + <a class="btn btn-mini" href="{{repo.getLink('edit', file.getFilename)}}" style="float: right;" title="edit" rel="nofollow"><i class="icon-edit"></i></a> <h3 id="{{file.getAnchorName}}">{{file.getFilename}}<a class="anchorlink" href="{{repo.getLink('display')}}#{{file.getAnchorName}}"></a></h3> </div> {{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 @@ <div class="row-fluid" style="margin-top: 5ex"> <div class="span4"></div> <div class="span4" style="text-align: center"> - <a class="btn" href="{{repo.getLink('edit', 'newfile')}}" id="add-button"> + <a class="btn" href="{{repo.getLink('edit', 'newfile')}}" id="add-button" + rel="nofollow"> <i class="icon-plus"></i> Add file </a> </div> <div class="span4"> - <a class="btn pull-right" href="{{repo.getLink('delete')}}"> + <a class="btn pull-right" href="{{repo.getLink('delete')}}" rel="nofollow"> <i class="icon-trash"></i> Delete paste </a> </div> 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 @@ <h1>{{repo.getTitle}}</h1> <div class="row repo-info"> <div class="span7"> - <a class="btn" href="{{repo.getLink('edit')}}"><i class="icon-edit"></i> edit</a> + <a class="btn" href="{{repo.getLink('edit')}}" rel="nofollow"><i class="icon-edit"></i> edit</a> </div> <div class="span2 pull-right"> <form method="post" action="{{repo.getLink('fork')}}"> 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 @@ <img src="phorkie/dot-{{dot}}.png" alt="" style="padding-left:1px" width="4" height="4"/> {% endfor %} {% endspaceless %} - <a class="hash" href="{{repo.getLink('revision', commit.hash)}}">{{commit.hash|slice(0, 6)}}</a> + <a class="hash" rel="nofollow" href="{{repo.getLink('revision', commit.hash)}}">{{commit.hash|slice(0, 6)}}</a> <img class="avatar-tiny" src="{{commit.getIconUrl}}" alt="{{commit.committerName}}" title="{{commit.committerName}}" width="20" height="20"/> <span class="nobr" title="{{commit.committerTime|date('c')}}"> <span class="indent visible-tablet"></span> 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 %} +<meta name="robots" content="noindex,nofollow"/> +{% endblock %} + {% block content %} {% include 'revision-head.htm' %} |
