From 27482983496cd0b8b6fa7dc943a1b05959735835 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 13 Oct 2023 12:16:18 -0400 Subject: Nice pagination! --- app/views/blogs/_list.html.haml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/views/blogs/_list.html.haml (limited to 'app/views/blogs/_list.html.haml') diff --git a/app/views/blogs/_list.html.haml b/app/views/blogs/_list.html.haml new file mode 100644 index 0000000..3618bdb --- /dev/null +++ b/app/views/blogs/_list.html.haml @@ -0,0 +1,5 @@ +- if not @main_page + = will_paginate @blogs +- @blogs.each do |blog| + = render blog, short: true += will_paginate @blogs -- cgit 1.4.1