In web crawler mode, don't show a previous link on a page with 0 results. Google will index those pages and keep following the prev links.

This commit is contained in:
Neil Lalonde 2014-05-12 10:50:08 -04:00
parent fca6738212
commit cf7a3e74ee
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
<p>
<% if @topic_view.prev_page %>
<% if @topic_view.posts.length > 0 && @topic_view.prev_page %>
<%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %>
<% end %>
<% if @topic_view.next_page %>