From 0022f3e1ce95b538315fa29fd654eb3a2d923b5d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 13 Oct 2023 14:57:41 -0400 Subject: Fixed display of draft blog posts --- app/views/blogs/_blog.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 c607e63..5467683 100644 --- a/app/views/blogs/_blog.html.haml +++ b/app/views/blogs/_blog.html.haml @@ -1,8 +1,8 @@ %article#blog-post %header - .post-calendar{ class: "post-date-#{(blog.published_at.year - 2007) % 4 + 1}" } - %span.post-month= blog.published_at.strftime("%^b") - %span.post-day= blog.published_at.day + .post-calendar{ class: "post-date-#{(blog.visible_date.year - 2007) % 4 + 1}" } + %span.post-month= blog.visible_date.strftime("%^b") + %span.post-day= blog.visible_date.day .blog-title %h2= link_to_unless_current blog.title, blog .post-author Hatkirby @@ -18,4 +18,4 @@ %cite.bubble %strong Hatkirby on - = blog.published_at.strftime("%B #{blog.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") + = blog.visible_date.strftime("%B #{blog.visible_date.day.ordinalize}, %Y at %-I:%M:%S%P") -- cgit 1.4.1