diff options
Diffstat (limited to 'app/views/blogs/index.html.haml')
| -rw-r--r-- | app/views/blogs/index.html.haml | 9 |
1 files changed, 9 insertions, 0 deletions
| diff --git a/app/views/blogs/index.html.haml b/app/views/blogs/index.html.haml new file mode 100644 index 0000000..75bf92f --- /dev/null +++ b/app/views/blogs/index.html.haml | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #blog-archive | ||
| 2 | %h2 Blog Archive | ||
| 3 | .bubble.rounded | ||
| 4 | - @blogs.chunk {|blog| blog.published_at.strftime("%B %Y") }.each do |chunk| | ||
| 5 | %h3= chunk[0] | ||
| 6 | - chunk[1].each do |blog| | ||
| 7 | %p.archive-link | ||
| 8 | = link_to blog.title, blog | ||
| 9 | %small= blog.published_at.strftime("%-d %b %Y") | ||
