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

View file

@ -21,7 +21,7 @@
<p> <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' %> <%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %>
<% end %> <% end %>
<% if @topic_view.next_page %> <% if @topic_view.next_page %>