FIX: make crawler linkback list compatible with google schema guidelines.

This commit is contained in:
Vinoth Kannan 2020-09-04 04:35:32 +05:30
parent 7a0d1cadc5
commit ea423b471a
1 changed files with 2 additions and 2 deletions

View File

@ -105,11 +105,11 @@
<% @topic_view.link_counts[post.id].each_with_index do |link, i| %>
<% if link[:reflection] && link[:title].present? %>
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
<a href="<%=link[:url]%>" itemprop='item'>
<a href="<%=link[:url]%>" itemscope itemtype='http://schema.org/DiscussionForumPosting' itemprop='item'>
<meta itemprop='url' content='<%=link[:url]%>'>
<meta itemprop='position' content='<%= i+1 %>'>
<span itemprop='name'><%=link[:title]%></span>
</a>
<meta itemprop='position' content='<%= i+1 %>'>
</div>
<% end %>
<% end %>