diff --git a/layouts/listing.html b/layouts/listing.html index 53b0753..ccbb7dd 100644 --- a/layouts/listing.html +++ b/layouts/listing.html @@ -11,8 +11,8 @@ <%= render 'header' %>
- <% sorted_articles.each do |article| %> -

<%= article.title %>

+ <% sorted_articles[0..9].each do |article| %> +

<%= article.attributes[:title] %>

<% end %>
<%= render 'footer' %>