Skip to content

Commit 572beaf

Browse files
committed
fix: missing x padding in article slugs
1 parent 3275ad4 commit 572beaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/articles/[...slug].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function getStaticPaths() {
5959
}}
6060
>
6161
<main
62-
class="prose prose-slate prose-headings:text-slate-800 prose-headings:font-heading prose-img:mx-auto prose-img:rounded-lg prose-img:shadow-lg py-24 max-w-[90ch] mx-auto px-6"
62+
class="prose prose-slate prose-headings:text-slate-800 prose-headings:font-heading prose-img:mx-auto prose-img:rounded-lg prose-img:shadow-lg py-24 max-w-[90ch] mx-auto px-4"
6363
>
6464
<div>
6565
<img class="rounded-lg w-full h-64 object-cover" src={entry.data.image} alt="Cover" />
@@ -91,7 +91,7 @@ export async function getStaticPaths() {
9191
<Content />
9292
</main>
9393
<hr class="w-full bg-slate-400 h-[1px]" />
94-
<div class="max-w-6xl mx-auto py-14">
94+
<div class="max-w-6xl mx-auto py-14 px-4">
9595
<h1 class="text-2xl font-bold font-heading text-slate-700 py-4">Other articles you may like</h1>
9696
<div class="grid gap-8 md:grid-cols-2 lg:grid-cols-4 py-18">
9797
{sortedArticlesMeta.map((article) => <ArticleCard variant="small" {...article.data} slug={article.slug} />)}

0 commit comments

Comments
 (0)