Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
style: move slot into layout
Browse files Browse the repository at this point in the history
  • Loading branch information
hetd54 committed Aug 12, 2024
1 parent c1b6e9b commit a88d3c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/layouts/News.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props
---

<Layout title={title} description={description}>
<article>
<article class="space-y-4">
{
heroImage && (
<div>
Expand All @@ -26,6 +26,8 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props
</div>
)
}
<div class="py-3 space-y-4">
<slot />
</div>
</article>
</Layout>
<slot />

0 comments on commit a88d3c0

Please sign in to comment.