Sha256: d238aba10d3c9aab560cc531ff87ca516082a9d0dd14338f1785b49046802432
Contents?: true
Size: 915 Bytes
Versions: 2
Compression:
Stored size: 915 Bytes
Contents
--- title: A Mother Clucker author: Tim Pease layout: tumblog/default filter: erb dirty: true --- <% prev = nil posts = @pages.find( :all, :layout => 'tumblog/post', :sort_by => :created_at, :reverse => true ) paginate(posts, 4) do |p| -%> <div class="post"> <% if prev != p.created_at.strftime('%Y%m%d') -%> <%= tumblog_date(p.created_at) %> <% prev = p.created_at.strftime('%Y%m%d') end -%> <a href="<%= p.url %>"> <img src="/images/tumblog/permalink.gif" class="permalink" alt="permalink" /> </a> <div class="<%= p.tumblog_type %>"> <% if p.title -%> <h2><%= link_to_page(p) %></h2> <% end -%> <%= render(p) %> </div> </div> <% end -%> <% content_for :footer do -%> <%= link_to("« Prev", @pager.prev) if @pager.prev? %> <%= link_to("Next »", @pager.next) if @pager.next? %> <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webby-0.9.3-x86-mswin32 | examples/tumblog/content/tumblog/index.txt |
webby-0.9.4-x86-mswin32 | examples/tumblog/content/tumblog/index.txt |