We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57452b8 commit 6625c17Copy full SHA for 6625c17
src/layouts/BaseLayout.astro
@@ -12,7 +12,7 @@ const { title } = Astro.props;
12
<title>{title}</title>
13
</head>
14
<body class="bg-gray-50 text-gray-900">
15
- <div class="container mx-auto px-4">
+ <div class="max-w-2xl mx-auto">
16
<slot />
17
</div>
18
</body>
src/pages/blog/[slug].astro
@@ -14,7 +14,7 @@ const { post } = Astro.props;
---
<BaseLayout title={post.data.title}>
- <div class="max-w-3xl mx-auto px-4 py-8">
+ <div class="px-4 py-8">
<h1 class="text-5xl font-bold text-gray-800 mb-4">{post.data.title}</h1>
19
<p class="text-gray-500 text-sm mb-8">{post.data.date.toDateString()}</p>
20
<article class="prose prose-lg max-w-none">
0 commit comments