% unless @page.images.empty? %>
<%= render 'shared/slideshow', :images => @page.images, :size => :slide %>
<% end %>
<% if @page.has_context?('intro') %>
<%= render 'shared/content', :content => @page.for_context('intro').first %>
<% end %>
<%= render :partial => 'shared/content', :collection => @page.for_context('main') %>
<% if defined?(SpreeEssentialBlog) && !@posts.blank? %>
<%= t('blog.home.title') %>
<%= render :partial => 'blog/shared/preview', :collection => @posts, :as => :post %>
<% end %>
<% if defined?(SpreeEssentialNews) && !@articles.blank? %>
<%= t('news.home.title') %>
<%= render :partial => 'news/articles/preview', :collection => @articles, :as => :article %>
<% end %>