<% if @pinned_stories.any? %>
" alt="pin" /> Pinned
<% @pinned_stories.each do |story| %> <%= render "articles/single_story", story: story %> <% end %>
<% end %> <% @stories.each_with_index do |story, i| %> <%= render "articles/single_story", story: story %> <% if i == 0 && @comments.any? %> <%= render "users/comments_section" %> <% end %> <% end %> <% if !@stories.any? && @comments.any? %> <%= render "users/comments_section" %> <% end %> <% if @stories.size > 1 %>
<% end %>