about summary refs log tree commit diff stats
path: root/app/views/blogs/show.html.haml
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-05 20:32:13 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-05 20:32:13 -0500
commit65808633a2e0259b54cefb268ebf79418b49e67c (patch)
tree39336c2a9204dd0da317e915a09a15abd3c53bd7 /app/views/blogs/show.html.haml
parentb047d1c54fb86742490b3bece574c2b84eb17f99 (diff)
downloadthoughts-65808633a2e0259b54cefb268ebf79418b49e67c.tar.gz
thoughts-65808633a2e0259b54cefb268ebf79418b49e67c.tar.bz2
thoughts-65808633a2e0259b54cefb268ebf79418b49e67c.zip
Added forward and back links to blog posts
Diffstat (limited to 'app/views/blogs/show.html.haml')
-rw-r--r--app/views/blogs/show.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml index 0c549ac..7558257 100644 --- a/app/views/blogs/show.html.haml +++ b/app/views/blogs/show.html.haml
@@ -1,4 +1,8 @@
1- title @blog.title 1- title @blog.title
2.breadcrumb= link_to "← Back to home page", root_path 2- unless @prev.nil?
3 .back-post= link_to "← #{@prev.title}", @prev
4- unless @next.nil?
5 .next-post= link_to "#{@next.title} →", @next
6.clear
3= render @blog, short: false 7= render @blog, short: false
4= show_comments(@blog) 8= show_comments(@blog)