<% category_link_params = { portal_slug: portal.slug, category_locale: category.locale, category_slug: category.slug, theme: @theme_from_params, is_plain_layout_enabled: @is_plain_layout_enabled } %>
<% if category.icon.present? %> <%= category.icon %> <% end %>

<%= category.name %>

<% if category.description.present? %> <%= category.description %> <% end %>
<% if category.articles.published.size==0 %>

<%= I18n.t('public_portal.common.no_articles') %>

<% else %> <% category.articles.published.order(position: :asc).take(5).each do |article| %>
<%= article.title %> <%= render partial: 'icons/chevron-right' %>
<% end %> <% end %>
<%= render "public/api/v1/portals/authors", category: category, show_expanded: false %> <%= render 'public/api/v1/portals/article_count', article_count: category.articles.published.order(position: :asc).size %>
<%= I18n.t('public_portal.common.view_all_articles') %>