<% if @pinned_stories.present? %>

<%= inline_svg_tag("pin.svg", aria: true, class: "crayons-icon mr-2", title: "Pin") %> Pinned

<%= render partial: "articles/single_story", collection: @pinned_stories, as: :story, locals: { featured: false } %>
<% end %> <% if @stories.present? %> <%= render "articles/single_story", story: @stories.first, featured: false %> <% if @comments.present? %> <%= render "users/comments_section" %> <% end %> <%= render partial: "articles/single_story", collection: @stories[1, @stories.size], as: :story, locals: { featured: false } %>
<% elsif @comments.present? %> <%= render "users/comments_section" %> <% end %>