mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-14 03:18:02 +00:00
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