seo: prevent crawlers from crawling /posts/:id/favorites.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<% end %>
|
||||
|
||||
<span class="post-score">
|
||||
<%= link_to post.score, post_votes_path(search: { post_id: post.id }, variant: :compact) %>
|
||||
<%= link_to post.score, post_votes_path(search: { post_id: post.id }, variant: :compact), rel: "nofollow" %>
|
||||
</span>
|
||||
|
||||
<% if current_user.is_anonymous? %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<% noindex %>
|
||||
|
||||
<div id="c-favorites">
|
||||
<div id="a-index">
|
||||
<% if @post %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<% noindex %>
|
||||
|
||||
<div id="c-post-votes">
|
||||
<div id="a-index">
|
||||
<%= render "search" %>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<li id="post-info-favorites">
|
||||
Favorites:
|
||||
<%= tag.span class: "post-favcount", "data-id": post.id do %>
|
||||
<%= link_to post.fav_count, post_favorites_path(post) %>
|
||||
<%= link_to post.fav_count, post_favorites_path(post), rel: "nofollow" %>
|
||||
<% end %>
|
||||
</li>
|
||||
<li id="post-info-status">
|
||||
|
||||
@@ -8,6 +8,7 @@ Disallow: /*.json
|
||||
Disallow: /posts?tags=source:*
|
||||
Disallow: /posts?tags=ordfav:*
|
||||
Disallow: /posts?tags=approver:*
|
||||
Disallow: /posts/*/favorites
|
||||
|
||||
Disallow: <%= artist_urls_path %>
|
||||
Disallow: <%= artist_versions_path %>
|
||||
|
||||
Reference in New Issue
Block a user