Sha256: 8bcbd2c3c3de4b20f0a11abb9217c3c232e38dcaa08d2ce8b87a61c96d5fd95c

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

<% content_for :head, auto_discovery_link_tag(:atom, posts_url(format: "atom")) %>

<div class="container">
  <div class="row">
    <div class="col-md-9">
      <% @posts.each do |post| %>
        <h2><%= link_to post.title, post %></h2>
        <p class='muted'><%= post.created_at.strftime("%b %d, %Y") %></p>
        <p><%= post.excerpt %></p>
        <p><%= link_to "Continue reading →", post %></p>
        <p><%= render 'tags', post: post %></p>
        <hr>
      <% end %>

      <%= paginate @posts %>
    </div>
    <div class="col-md-3">
      <h5>Tags</h5>
      <% tag_cloud Storytime::Post.tag_counts, %w[s m l] do |tag, css_class| %>
        <div><%= link_to tag.name, tag_path(tag.name), class: css_class %></div>
      <% end %>
    </div>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
storytime-0.0.2 app/views/storytime/posts/index.html.erb