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:
parent
fca6738212
commit
cf7a3e74ee
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue