Skip to content

Commit 7725aee

Browse files
committed
feat(home-page): add link to view all posts or snippets in LatestPosts component
1 parent c132ebe commit 7725aee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/home-page/latest-posts.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ export function LatestPosts({
7474
</div>
7575
</div>
7676
)}
77+
<div className="flex justify-end pt-5">
78+
<Link
79+
href={view === 'posts' ? '/blog' : '/snippets'}
80+
className="text-base font-medium leading-6"
81+
>
82+
<GrowingUnderline data-umami-event={`all-${view}-bottom`}>
83+
View all {view} &rarr;
84+
</GrowingUnderline>
85+
</Link>
86+
</div>
7787
</div>
7888
)
7989
}

0 commit comments

Comments
 (0)