mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: make crawler linkback list compatible with google schema guidelines.
This commit is contained in:
parent
7a0d1cadc5
commit
ea423b471a
@ -105,11 +105,11 @@
|
|||||||
<% @topic_view.link_counts[post.id].each_with_index do |link, i| %>
|
<% @topic_view.link_counts[post.id].each_with_index do |link, i| %>
|
||||||
<% if link[:reflection] && link[:title].present? %>
|
<% if link[:reflection] && link[:title].present? %>
|
||||||
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
<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='url' content='<%=link[:url]%>'>
|
||||||
<meta itemprop='position' content='<%= i+1 %>'>
|
|
||||||
<span itemprop='name'><%=link[:title]%></span>
|
<span itemprop='name'><%=link[:title]%></span>
|
||||||
</a>
|
</a>
|
||||||
|
<meta itemprop='position' content='<%= i+1 %>'>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user