Skip to content

Commit c68465c

Browse files
authored
blog: add back-to-blog link at top of post (#620)
1 parent f44fda9 commit c68465c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/(blog)/blog/[slug]/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,19 @@ export default async function BlogPostPage({ params }: BlogPostPageProps) {
7474
{/* Article Header */}
7575
<header className="mb-12">
7676
<div className="mb-6 flex items-center gap-4">
77+
<Link
78+
href="/blog"
79+
className="font-mono text-[11px] uppercase tracking-widest text-[#a993d1] transition-colors hover:text-on-surface"
80+
>
81+
← Blog
82+
</Link>
83+
<div className="h-px flex-grow bg-outline-variant/20" />
7784
<time
7885
dateTime={post.date}
7986
className="font-mono text-xs uppercase tracking-widest text-secondary"
8087
>
8188
{formatPostDate(post.date)}
8289
</time>
83-
<div className="h-px flex-grow bg-outline-variant/20" />
8490
</div>
8591

8692
<h1 className="mb-6 font-headline text-6xl font-bold leading-[0.9] tracking-tighter text-on-surface md:text-8xl">

0 commit comments

Comments
 (0)