discourse/app/views/categories/index.html.erb
2016-08-17 23:23:16 +02:00

14 lines
622 B
Text

<div class='category-list' itemscope itemtype='http://schema.org/ItemList'>
<meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'>
<% @category_list.categories.each do |c| %>
<div class='category' itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
<meta itemprop='url' content='<%= c.url %>'>
<h2><a href='<%= c.url %>' itemprop='item'>
<span itemprop='name'><%= c.name %></span>
</a></h2>
<span itemprop='description'><%= c.description %></span>
</div>
<% end %>
</div>
<% content_for :title do %><%= @title %><% end %>