% add_decidim_page_title component_name %>
<%= append_javascript_pack_tag "decidim_blogs" %>
<%= append_stylesheet_pack_tag "decidim_blogs" %>
<% content_for :aside do %>
<%= component_name %>
<% end %>
<%= render layout: "layouts/decidim/shared/layout_two_col" do %>
<%= render partial: "decidim/shared/component_announcement" %>
<% if posts.empty? %>
<%= cell("decidim/announcement", t("empty", scope: "decidim.blogs.posts.index")) %>
<% else %>
<%= t("count", scope: "decidim.blogs.posts.index", count: posts.length) %>
<% end %>
<% paginate_posts.each do |post| %>
<%= card_for post, size: :l %>
<% end %>
<%= decidim_paginate paginate_posts %>
<% end %>