From 5f860c66d300654934848aee1abe8e5c0d41836e Mon Sep 17 00:00:00 2001
From: Star Rauchenberger <fefferburbia@gmail.com>
Date: Wed, 11 Oct 2023 16:25:37 -0400
Subject: Added blog archive

The path to blog posts is now "blog" instead of "says", btw.
---
 app/views/admin/blogs/_form.html.haml | 2 +-
 app/views/admin/blogs/index.html.haml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'app/views/admin')

diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml
index 625c85e..01177c1 100644
--- a/app/views/admin/blogs/_form.html.haml
+++ b/app/views/admin/blogs/_form.html.haml
@@ -18,7 +18,7 @@
   - unless f.object.new_record?
     #entry-preview-link.details-module
       - if f.object.published
-        = link_to "View post", blog_url(f.object.slug_was), target: "entry-preview"
+        = link_to "View post", blog_post_url(f.object.slug_was), target: "entry-preview"
       - else
         = link_to "Preview post", admin_blog_url(f.object.id), target: "entry-preview"
   .details-module
diff --git a/app/views/admin/blogs/index.html.haml b/app/views/admin/blogs/index.html.haml
index 9899176..c74fef5 100644
--- a/app/views/admin/blogs/index.html.haml
+++ b/app/views/admin/blogs/index.html.haml
@@ -10,5 +10,5 @@
       %td= blog.published_at.strftime("%B %d, %Y, %l:%M%P")
       %td
         %ul.admin-actions
-          %li= link_to "View", blog_url(blog.slug)
+          %li= link_to "View", blog_post_url(blog.slug)
           %li= link_to "Edit", edit_admin_blog_url(blog.id)
-- 
cgit 1.4.1