Sha256: c57b082a8829cf0d6d6258eb81fd8b333dfc6f2a52a2b760079bda40116dd587

Contents?: true

Size: 486 Bytes

Versions: 12

Compression:

Stored size: 486 Bytes

Contents

<h1>Blog</h1>

<div class="span8">
<% @posts.each do |post| %>
  <div class="article post">
    <h2><%= post.title %></h2>
    <% if post.published_at %>
      <p class="published_on"><%= post.published_at.to_date.to_formatted_s(:long_ordinal) %></p>
    <% end %>
    <p class="post_content"><%= post.body.html_safe if !post.body.blank? %></p>
    <p class="read_more"><%= link_to 'read more', post %></p>
  </div>
<% end %>
</div>

<%= render :partial => 'wafflemix/posts/sidebar' %>

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 app/views/wafflemix/posts/index.html.erb
wafflemix-0.0.6 app/views/wafflemix/categories/index.erb
wafflemix-0.0.5 app/views/wafflemix/categories/index.erb
wafflemix-0.0.5 app/views/wafflemix/posts/index.html.erb
wafflemix-0.0.4 app/views/wafflemix/categories/index.erb
wafflemix-0.0.4 app/views/wafflemix/posts/index.html.erb
wafflemix-0.0.3 app/views/wafflemix/categories/index.erb
wafflemix-0.0.3 app/views/wafflemix/posts/index.html.erb
wafflemix-0.0.2 app/views/wafflemix/posts/index.html.erb
wafflemix-0.0.2 app/views/wafflemix/categories/index.erb
wafflemix-0.0.1 app/views/wafflemix/categories/index.erb
wafflemix-0.0.1 app/views/wafflemix/posts/index.html.erb