aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery')
-rw-r--r--app/views/refinery/pages/home.html.erb20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/refinery/pages/home.html.erb b/app/views/refinery/pages/home.html.erb
new file mode 100644
index 0000000..2e8837c
--- /dev/null
+++ b/app/views/refinery/pages/home.html.erb
@@ -0,0 +1,20 @@
+<% content_for :body_content_left do %>
+ <%= raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) if Refinery::Pages.default_parts.any? %>
+
+ <% if @posts.any? %>
+ <section id="blog_posts">
+ <%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
+ <%= will_paginate @posts %>
+ </section>
+ <% else %>
+ <p><%= t('.no_blog_articles_yet') %></p>
+ <% end %>
+<% end %>
+
+<% content_for :body_content_right_prepend do -%>
+ <%= raw @page.content_for(Refinery::Pages.default_parts.second.to_sym) %>
+<% end if Refinery::Pages.default_parts.many? -%>
+<%= render :partial => '/refinery/blog/shared/body_content_right' %>
+
+<%= render :partial => "/refinery/content_page" %>
+<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>