Skip to content

Commit

Permalink
Removing sitewide nofollow preventing pages indexation, and setting i…
Browse files Browse the repository at this point in the history
…t only on external links anchors
  • Loading branch information
fcambus committed Feb 5, 2012
1 parent 89cde3a commit e26b07e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app.rb
Expand Up @@ -1406,7 +1406,7 @@ def news_to_html(news)
"▲"
}+" "+
H.h2 {
H.a(:href=>news["url"]) {
H.a(:href=>news["url"], :rel => "nofollow") {
H.entities news["title"]
}
}+" "+
Expand Down Expand Up @@ -1614,9 +1614,9 @@ def urls_to_links(s)
s.gsub(urls) {
if $1[-1..-1] == '.'
url = $1.chop
'<a href="'+url+'">'+url+'</a>.'
'<a rel="nofollow" href="'+url+'">'+url+'</a>.'
else
'<a href="'+$1+'">'+$1+'</a>'
'<a rel="nofollow" href="'+$1+'">'+$1+'</a>'
end
}
end
Expand Down
2 changes: 1 addition & 1 deletion page.rb
Expand Up @@ -127,7 +127,7 @@ def page()
H.head {
self.meta(:charset => "utf-8")+
self.title{H.entities @title}+
self.meta(:content => :nofollow, :name => :robots)+
self.meta(:content => :index, :name => :robots)+
self.link(:href => "/css/style.css?v=8", :rel => "stylesheet",
:type => "text/css")+
self.link(:href => "/images/favicon.png", :rel => "shortcut icon")+
Expand Down

0 comments on commit e26b07e

Please sign in to comment.