add rel="nofollow" to ShortURL and series-related links, googlebot doesn't need to follow them
authorterom
Thu, 08 Nov 2007 17:53:03 +0000
changeset 4 d46ab092d2b2
parent 3 9637b8f24005
child 5 156cdfffef8e
add rel="nofollow" to ShortURL and series-related links, googlebot doesn't need to follow them
series.cgi
templates/gallery.html
templates/image.html
--- a/series.cgi	Thu Nov 08 17:28:01 2007 +0000
+++ b/series.cgi	Thu Nov 08 17:53:03 2007 +0000
@@ -1,9 +1,9 @@
 #!/usr/bin/env python2.4
+
 import shelve
 import cgi
 import Cookie
 import os, os.path
-#import pprint
 
 import degal
 
@@ -119,9 +119,9 @@
             self.title = "Series"
 
             if my_series :
-                self.descr = '<a href="../clear/">Clear your series</a>'
+                self.descr = '<a href="../clear/" rel="nofollow">Clear your series</a>'
             else :
-                self.descr = '<a href="load">Load as your series</a>'
+                self.descr = '<a href="load" rel="nofollow">Load as your series</a>'
 
             self.shorturl_code = ''
         
--- a/templates/gallery.html	Thu Nov 08 17:28:01 2007 +0000
+++ b/templates/gallery.html	Thu Nov 08 17:53:03 2007 +0000
@@ -16,7 +16,7 @@
     </div>
     <p id="description"><!-- DESCR --></p>
     <div id="info">
-        <p>ShortURL: <a href="<!-- SHORTURL -->"><!-- SHORTURL_CODE --></a></p>
+        <p>ShortURL: <a href="<!-- SHORTURL -->" rel="nofollow"><!-- SHORTURL_CODE --></a></p>
     </div>
     <p id="about"><a href="http://marttila.de/~terom/degal/">DeGAL</a> <!-- VERSION --></p>
   </body>
--- a/templates/image.html	Thu Nov 08 17:28:01 2007 +0000
+++ b/templates/image.html	Thu Nov 08 17:53:03 2007 +0000
@@ -22,8 +22,8 @@
       <p><!-- IMGSIZE --></p>
       <p><!-- FILESIZE --></p>
       <p><!-- TIMESTAMP --></p>
-      <p>ShortURL: <a href="<!-- SHORTURL -->"><!-- SHORTURL_CODE --></a></p>
-      <p><a href="<!-- SERIES_URL -->"><!-- SERIES_VERB --></a> series</p>
+      <p>ShortURL: <a href="<!-- SHORTURL -->" rel="nofollow"><!-- SHORTURL_CODE --></a></p>
+      <p><a href="<!-- SERIES_URL -->" rel="nofollow"><!-- SERIES_VERB --></a> series</p>
     </div>
     <p id="about"><a href="http://marttila.de/~terom/degal/">DeGAL</a> <!-- VERSION --></p>
   </body>