<% if @posts.blank? %>

<%= t('blog.no_posts') %>

<% else %> <%= render :partial => 'blog/shared/preview', :collection => @posts, :as => :post %> <% end %>
<%= link_to(image_tag('blog/rss.png', :alt => t('.rss')) + t('.rss'), posts_path(:format => 'rss'), :id => "posts-rss") %> <%= paginate @posts %>
<% content_for :sidebar do %> <%= render :partial => 'blog/shared/sidebar' %> <% end %>