forked from wezm/wezm.net
Show ten most recent article titles at /
This commit is contained in:
parent
493678c336
commit
728633b1a4
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@
|
||||||
<body>
|
<body>
|
||||||
<%= render 'header' %>
|
<%= render 'header' %>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<% sorted_articles.each do |article| %>
|
<% sorted_articles[0..9].each do |article| %>
|
||||||
<h1><%= article.title %></h1>
|
<h1><%= article.attributes[:title] %></h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<%= render 'footer' %>
|
<%= render 'footer' %>
|
||||||
|
|
Loading…
Reference in a new issue