about summary refs log tree commit diff stats
path: root/app/views/blogs/index.html.haml
blob: 75bf92f7492eee44b309e02ca40dac184404ad80 (plain) (blame)
1
2
3
4
5
6
7
8
9
#blog-archive
  %h2 Blog Archive
  .bubble.rounded
    - @blogs.chunk {|blog| blog.published_at.strftime("%B %Y") }.each do |chunk|
      %h3= chunk[0]
      - chunk[1].each do |blog|
        %p.archive-link
          = link_to blog.title, blog
          %small= blog.published_at.strftime("%-d %b %Y")