Make phorkie search engine friendlier
authorChristian Weiske <cweiske@cweiske.de>
Thu, 11 Feb 2016 16:16:21 +0000 (17:16 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 11 Feb 2016 16:16:21 +0000 (17:16 +0100)
Tell crawlers which links they should not follow.
Helps my own search engine "phinde"

data/templates/display-file.htm
data/templates/display-foot.htm
data/templates/display-head.htm
data/templates/display-sidebar-history.htm
data/templates/revision.htm

index adffbc70b3837ab3f1024b805ec6076aee4d3332..32dbced2273b021410a399362571537917b96a92 100644 (file)
@@ -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}}
index 6324509ab273737d7426cab2963d001ebeead0ae..bf9605ead20ebdf589e9bb6edea0fbf5a310f622 100644 (file)
@@ -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>
index 8c1690866c0429ff5b81a9890a9e0f73073f9c03..61961ab365126c428ce85f120f6db0b3d2429174 100644 (file)
@@ -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')}}">
index 0e99b2fd96a41e0231f57a9b5ba9cfd6a9a615ba..8db30e9eeee3e94e0fa533011ee6adeb0c41947b 100644 (file)
@@ -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>
index 1462a4a6bc09b3784027a17eda83c452f677220a..bb9d3f69252870b40f5772dc52118b8a7d33b9bb 100644 (file)
@@ -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' %}