mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +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>
|
||||
<%= render 'header' %>
|
||||
<div id="main">
|
||||
<% sorted_articles.each do |article| %>
|
||||
<h1><%= article.title %></h1>
|
||||
<% sorted_articles[0..9].each do |article| %>
|
||||
<h1><%= article.attributes[:title] %></h1>
|
||||
<% end %>
|
||||
</div>
|
||||
<%= render 'footer' %>
|
||||
|
|
Loading…
Reference in a new issue