2015-02-13 06:34:22 -05:00
|
|
|
<div class='category-list' itemscope itemtype='http://schema.org/ItemList'>
|
|
|
|
<meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'>
|
2018-06-13 17:20:48 -04:00
|
|
|
<% @category_list.categories.each_with_index do |c, index| %>
|
2015-02-13 06:34:22 -05:00
|
|
|
<div class='category' itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
2018-06-13 17:20:48 -04:00
|
|
|
<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>
|
|
|
|
</a>
|
|
|
|
</h2>
|
2017-07-25 14:40:02 -04:00
|
|
|
<span itemprop='description'><%= c.description&.html_safe %></span>
|
2013-04-26 13:10:41 -04:00
|
|
|
</div>
|
2015-02-13 06:34:22 -05:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2014-10-30 14:26:35 -04:00
|
|
|
|
2015-06-08 12:07:35 -04:00
|
|
|
<% content_for :title do %><%= @title %><% end %>
|
2016-08-19 07:34:43 -04:00
|
|
|
|
|
|
|
<% content_for :head do %>
|
|
|
|
<%= raw crawlable_meta_data(title: SiteSetting.title, description: SiteSetting.site_description) %>
|
|
|
|
<% end %>
|