From e09aa803cf3905c82c29dbaa9101cc4a4639cc5a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 11 Oct 2023 12:12:25 -0400 Subject: We're on Markdown now --- app/views/blogs/_blog.html.haml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/views/blogs/_blog.html.haml') diff --git a/app/views/blogs/_blog.html.haml b/app/views/blogs/_blog.html.haml index 317ef1f..389f961 100644 --- a/app/views/blogs/_blog.html.haml +++ b/app/views/blogs/_blog.html.haml @@ -6,4 +6,9 @@ .blog-title %h2= blog.title .post-author Hatkirby - %blockquote#blog-content.entry-content.bubble.rounded.bottom= blog.body.html_safe + %blockquote#blog-content.entry-content.bubble.rounded.bottom + - if short and blog.has_read_more + = markdown(blog.short_body) + = link_to "Read more...", blog + - else + = markdown(blog.body) -- cgit 1.4.1