diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-06 11:04:01 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-06 11:04:01 -0500 |
commit | 60a15bbe721f23ec05093107da6cb3056d158c90 (patch) | |
tree | b0ebfc9a1c31ff3765874674f691d69306f84ff8 | |
parent | f177a1923061754e9d7a76bc070f858a0595b5f7 (diff) | |
download | thoughts-60a15bbe721f23ec05093107da6cb3056d158c90.tar.gz thoughts-60a15bbe721f23ec05093107da6cb3056d158c90.tar.bz2 thoughts-60a15bbe721f23ec05093107da6cb3056d158c90.zip |
-rw-r--r-- | app/controllers/blogs_controller.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/blogs_controller.rb b/app/controllers/blogs_controller.rb index 033d6bb..4f6d9ce 100644 --- a/app/controllers/blogs_controller.rb +++ b/app/controllers/blogs_controller.rb | |||
@@ -1,5 +1,11 @@ | |||
1 | require 'redcarpet/render_strip' | 1 | require 'redcarpet/render_strip' |
2 | 2 | ||
3 | class StrippedSummary < Redcarpet::Render::StripDown | ||
4 | def block_html(raw_html) | ||
5 | nil | ||
6 | end | ||
7 | end | ||
8 | |||
3 | class BlogsController < ApplicationController | 9 | class BlogsController < ApplicationController |
4 | 10 | ||
5 | def summary | 11 | def summary |
@@ -27,7 +33,7 @@ class BlogsController < ApplicationController | |||
27 | @prev = @blog.prev | 33 | @prev = @blog.prev |
28 | @next = @blog.next | 34 | @next = @blog.next |
29 | 35 | ||
30 | body = Redcarpet::Markdown.new(Redcarpet::Render::StripDown).render(@blog.body) | 36 | body = Redcarpet::Markdown.new(StrippedSummary).render(@blog.body) |
31 | 37 | ||
32 | set_meta_tags(og: { | 38 | set_meta_tags(og: { |
33 | title: @blog.title, | 39 | title: @blog.title, |