discourse/app/views/categories/index.html.erb

19 lines
773 B
Plaintext
Raw Normal View History

<div class='category-list' itemscope itemtype='http://schema.org/ItemList'>
<meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'>
2016-08-17 17:23:16 -04:00
<% @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&.html_safe %></span>
</div>
<% end %>
</div>
2014-10-30 14:26:35 -04:00
<% content_for :title do %><%= @title %><% end %>
<% content_for :head do %>
<%= raw crawlable_meta_data(title: SiteSetting.title, description: SiteSetting.site_description) %>
<% end %>