From 494033c732674b8d5619795a7ab25aee363993cf Mon Sep 17 00:00:00 2001 From: Auggie Date: Mon, 7 Apr 2025 18:40:05 -0500 Subject: [PATCH] put back the side bar components --- src/components/Sidebar.tsx | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 9b6cd43..1b87b4e 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,6 +1,7 @@ import React from 'react'; import Link from 'next/link'; -import SubscribeForm from './SubscribeForm'; // Import the reusable SubscribeForm +import TagList from './TagList'; +import SubscribeForm from "@/components/SubscribeForm"; interface SidebarProps { recentPosts: Array<{ @@ -39,7 +40,34 @@ const Sidebar: React.FC = ({ recentPosts, tags = [] }) => { - {/* Subscribe section */} +
+

Recent Posts

+
    + {recentPosts.map(post => ( +
  • + +

    {post.title}

    +

    + {new Date(post.date).toLocaleDateString('en-US', { + year: 'numeric', + month: 'short', + day: 'numeric' + })} +

    + +
  • + ))} +
+
+ +
+

Popular Tags

+ +
+

Subscribe