mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
FIX: ListItem can’t have itemprop=url and itemprop=item together
This commit is contained in:
parent
666386d4b7
commit
803968147c
@ -3,7 +3,6 @@
|
||||
<% @category_list.categories.each_with_index do |c, index| %>
|
||||
<div class='category' itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
||||
<meta itemprop='position' content='<%= index %>'>
|
||||
<meta itemprop='url' content='<%= "#{Discourse.base_url}#{c.url}" %>'>
|
||||
<h2>
|
||||
<a href='<%= "#{Discourse.base_url}#{c.url}" %>' itemprop='item'>
|
||||
<span itemprop='name'><%= c.name %></span>
|
||||
|
@ -43,7 +43,6 @@
|
||||
<% @list.topics.each_with_index do |t,i| %>
|
||||
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
||||
<meta itemprop='position' content='<%= i %>'>
|
||||
<meta itemprop='url' content='<%= t.url %>'>
|
||||
<a href='<%= t.url %>' itemprop='item'>
|
||||
<span itemprop='name'><%= t.title %></span>
|
||||
</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user