about summary refs log tree commit diff stats
path: root/app/controllers
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/controllers
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/controllers')
-rw-r--r--app/controllers/blogs_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/blogs_controller.rb b/app/controllers/blogs_controller.rb index 2f9df49..033d6bb 100644 --- a/app/controllers/blogs_controller.rb +++ b/app/controllers/blogs_controller.rb
@@ -24,6 +24,9 @@ class BlogsController < ApplicationController
24 raise ActiveRecord::RecordNotFound unless @blog 24 raise ActiveRecord::RecordNotFound unless @blog
25 raise ActiveRecord::RecordNotFound unless @blog.published 25 raise ActiveRecord::RecordNotFound unless @blog.published
26 26
27 @prev = @blog.prev
28 @next = @blog.next
29
27 body = Redcarpet::Markdown.new(Redcarpet::Render::StripDown).render(@blog.body) 30 body = Redcarpet::Markdown.new(Redcarpet::Render::StripDown).render(@blog.body)
28 31
29 set_meta_tags(og: { 32 set_meta_tags(og: {