about summary refs log tree commit diff stats
path: root/app/views/blogs/index.html.haml
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:25:37 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:25:37 -0400
commit5f860c66d300654934848aee1abe8e5c0d41836e (patch)
tree73c6deda7baa751279f7b4fb9a0f10572cf92f0f /app/views/blogs/index.html.haml
parent192705645135aa20951d78949d7e49e4bad58974 (diff)
downloadthoughts-5f860c66d300654934848aee1abe8e5c0d41836e.tar.gz
thoughts-5f860c66d300654934848aee1abe8e5c0d41836e.tar.bz2
thoughts-5f860c66d300654934848aee1abe8e5c0d41836e.zip
Added blog archive
The path to blog posts is now "blog" instead of "says", btw.
Diffstat (limited to 'app/views/blogs/index.html.haml')
-rw-r--r--app/views/blogs/index.html.haml12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/views/blogs/index.html.haml b/app/views/blogs/index.html.haml index e9639ca..75bf92f 100644 --- a/app/views/blogs/index.html.haml +++ b/app/views/blogs/index.html.haml
@@ -1,3 +1,9 @@
1- @blogs.each do |blog| 1#blog-archive
2 = render blog, short: true 2 %h2 Blog Archive
3= will_paginate @blogs 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")