about summary refs log tree commit diff stats
path: root/app/controllers/blogs_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/blogs_controller.rb')
-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: {