diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 12:12:25 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 12:12:25 -0400 |
commit | e09aa803cf3905c82c29dbaa9101cc4a4639cc5a (patch) | |
tree | 507ffb887044bfbcd2fd5cf89f8fe587654d01ba /app/views/blogs | |
parent | 3a628945ade35f3ba351ba90e271608520753174 (diff) | |
download | thoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.tar.gz thoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.tar.bz2 thoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.zip |
We're on Markdown now
Diffstat (limited to 'app/views/blogs')
-rw-r--r-- | app/views/blogs/_blog.html.haml | 7 | ||||
-rw-r--r-- | app/views/blogs/index.html.haml | 2 | ||||
-rw-r--r-- | app/views/blogs/show.html.haml | 2 |
3 files changed, 8 insertions, 3 deletions
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 @@ | |||
6 | .blog-title | 6 | .blog-title |
7 | %h2= blog.title | 7 | %h2= blog.title |
8 | .post-author Hatkirby | 8 | .post-author Hatkirby |
9 | %blockquote#blog-content.entry-content.bubble.rounded.bottom= blog.body.html_safe | 9 | %blockquote#blog-content.entry-content.bubble.rounded.bottom |
10 | - if short and blog.has_read_more | ||
11 | = markdown(blog.short_body) | ||
12 | = link_to "Read more...", blog | ||
13 | - else | ||
14 | = markdown(blog.body) | ||
diff --git a/app/views/blogs/index.html.haml b/app/views/blogs/index.html.haml index a1ad64c..e9639ca 100644 --- a/app/views/blogs/index.html.haml +++ b/app/views/blogs/index.html.haml | |||
@@ -1,3 +1,3 @@ | |||
1 | - @blogs.each do |blog| | 1 | - @blogs.each do |blog| |
2 | = render blog | 2 | = render blog, short: true |
3 | = will_paginate @blogs | 3 | = will_paginate @blogs |
diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml index f915e64..9bff12b 100644 --- a/app/views/blogs/show.html.haml +++ b/app/views/blogs/show.html.haml | |||
@@ -1,6 +1,6 @@ | |||
1 | - title @blog.title | 1 | - title @blog.title |
2 | .breadcrumb= link_to "← Back to home page", root_path | 2 | .breadcrumb= link_to "← Back to home page", root_path |
3 | = render @blog | 3 | = render @blog, short: false |
4 | %footer#blog-footer | 4 | %footer#blog-footer |
5 | This entry was posted on | 5 | This entry was posted on |
6 | = succeed "." do | 6 | = succeed "." do |