Skip to content

Commit

Permalink
chore: posts link
Browse files Browse the repository at this point in the history
  • Loading branch information
Debbl committed Jan 17, 2025
1 parent b53788c commit ec9c7c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/posts/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { format } from "date-fns";
import Link from "~/components/Link";
import { Meteors } from "~/components/magicui/Meteors";
import { getPosts } from "./_data";

Expand Down Expand Up @@ -30,7 +31,7 @@ export default async function Page() {
<h2 className="text-3xl font-bold">{category.title}</h2>
<ul className="mt-4 flex flex-col gap-y-2">
{category.posts.map((post) => (
<a
<Link
className="opacity-60 hover:opacity-100"
href={post.slug}
key={post.slug}
Expand All @@ -46,7 +47,7 @@ export default async function Page() {
{post.duration}
</span>
</li>
</a>
</Link>
))}
</ul>
</div>
Expand Down

0 comments on commit ec9c7c5

Please sign in to comment.