mirror of
https://github.com/discourse/discourse.git
synced 2025-04-29 17:14:34 +08:00
FIX: minor micro data fixes
This commit is contained in:
parent
7550e9ff95
commit
1772b56cda
@ -3,6 +3,7 @@
|
|||||||
<% @category_list.categories.each_with_index do |c, index| %>
|
<% @category_list.categories.each_with_index do |c, index| %>
|
||||||
<div class='category' itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
<div class='category' itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
||||||
<meta itemprop='position' content='<%= index %>'>
|
<meta itemprop='position' content='<%= index %>'>
|
||||||
|
<meta itemprop='url' content='<%= "#{Discourse.base_url}#{c.url}" %>'>
|
||||||
<h2>
|
<h2>
|
||||||
<a href='<%= "#{Discourse.base_url}#{c.url}" %>' itemprop='item'>
|
<a href='<%= "#{Discourse.base_url}#{c.url}" %>' itemprop='item'>
|
||||||
<span itemprop='name'><%= c.name %></span>
|
<span itemprop='name'><%= c.name %></span>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<% if params[:page].to_i == 0 && @subcategories.present? %>
|
<% if params[:page].to_i == 0 && @subcategories.present? %>
|
||||||
<% @subcategories.each do |subcategory| %>
|
<% @subcategories.each do |subcategory| %>
|
||||||
<a href='<%= subcategory.url %>' itemprop='item'>
|
<a href='<%= subcategory.url %>'>
|
||||||
<span itemprop='name'><%= subcategory.name %></span>
|
<span itemprop='name'><%= subcategory.name %></span>
|
||||||
</a>
|
</a>
|
||||||
<% if subcategory.description.present? %>
|
<% if subcategory.description.present? %>
|
||||||
@ -43,6 +43,7 @@
|
|||||||
<% @list.topics.each_with_index do |t,i| %>
|
<% @list.topics.each_with_index do |t,i| %>
|
||||||
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
||||||
<meta itemprop='position' content='<%= i %>'>
|
<meta itemprop='position' content='<%= i %>'>
|
||||||
|
<meta itemprop='url' content='<%= t.url %>'>
|
||||||
<a href='<%= t.url %>' itemprop='item'>
|
<a href='<%= t.url %>' itemprop='item'>
|
||||||
<span itemprop='name'><%= t.title %></span>
|
<span itemprop='name'><%= t.title %></span>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user