diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-04-08 17:09:56 +0200 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-04-08 17:09:56 +0200 |
commit | c8a34ac5caebb7a981fca7131ae19d26d1bfb70f (patch) | |
tree | 5bc4683be9dbe138297a4b4fe4ebc11a0a06f5ae /source/news.html.erb | |
parent | 84c26268ba606e6d4a9e320117ed89a328e7788b (diff) |
add article partial, and use blog on frontpage
Diffstat (limited to 'source/news.html.erb')
-rw-r--r-- | source/news.html.erb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source/news.html.erb b/source/news.html.erb index 0fae27e..d238f2a 100644 --- a/source/news.html.erb +++ b/source/news.html.erb @@ -3,22 +3,17 @@ pageable: true per_page: 10 --- <% if paginate && num_pages > 1 %> - <p>Page <%= page_number %> of <%= num_pages %></p> + <p>Seite <%= page_number %> von <%= num_pages %></p> <% if prev_page %> - <p><%= link_to 'Previous page', prev_page %></p> + <p><%= link_to 'Vorherige Seite', prev_page %></p> <% end %> <% end %> -<% page_articles.each_with_index do |article, i| %> - <h2><%= link_to article.title, article %> <span><%= article.date.strftime('%b %e') %></span></h2> - <!-- use article.summary(250) if you have Nokogiri available to show just - the first 250 characters --> - <%= article.body %> -<% end %> +<%= partial "article", collection: page_articles %> <% if paginate %> <% if next_page %> - <p><%= link_to 'Next page', next_page %></p> + <p><%= link_to 'Nächste Seite', next_page %></p> <% end %> <% end %> |