FIX: crawler view of paginated content should have link elements in head for next and previous pages

This commit is contained in:
Neil Lalonde
2017-02-07 16:11:06 -05:00
parent df8f365d99
commit a5dfcddc6c
3 changed files with 22 additions and 0 deletions

View File

@@ -49,6 +49,13 @@
<% end %>
<span itemprop='url'><b><a href='<%= @list.more_topics_url %>' rel='next' itemprop='name'><%= t 'next_page' %></a></b></span>
</div>
<% content_for :head do %>
<% if params[:page].to_i > 0 %>
<link rel="prev" href="<%= @list.prev_topics_url -%>">
<% end %>
<link rel="next" href="<%= @list.more_topics_url -%>">
<% end %>
<% end %>
<%- end %>