Skip to content

Commit e7036bf

Browse files
committed
Remove Back to blog breadcrumb, add top padding to clear mobile ToC
1 parent 9437fe1 commit e7036bf

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/components/astro/BlogPostView.astro

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,7 @@ const formattedDate = new Date(post.date).toLocaleDateString("en-US", {
5959

6060
<article>
6161
<section class="page-section">
62-
<div class="mb-4">
63-
<a
64-
href="/blog"
65-
class="inline-flex items-center gap-1.5 font-mono text-xs text-muted-foreground transition-colors hover:text-primary lg:text-[13px]"
66-
>
67-
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" x2="5" y1="12" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>
68-
Back to blog
69-
</a>
70-
</div>
71-
72-
<h1 class="mt-4 max-w-3xl break-words font-mono text-2xl font-semibold tracking-[-0.03em] text-foreground sm:text-3xl md:text-4xl lg:text-[2.5rem]">
62+
<h1 class="max-w-3xl break-words font-mono text-2xl font-semibold tracking-[-0.03em] text-foreground sm:text-3xl md:text-4xl lg:text-[2.5rem]">
7363
{post.title}
7464
</h1>
7565

src/pages/blog/[slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const toc = headings
3838
<BaseLayout title={post.title} description={post.description} canonical={post.canonicalUrl}>
3939
<div class="min-h-screen bg-background flex flex-col">
4040
<SiteHeader />
41-
<main class="flex-1 pt-16">
41+
<main class="flex-1 pt-28 xl:pt-16">
4242
<div class="page-container min-w-0">
4343
<div class="xl:grid xl:grid-cols-[1fr_14rem] xl:gap-x-8">
4444
<div class="min-w-0">

0 commit comments

Comments
 (0)