Minimal fix to Content

This commit is contained in:
prototypa
2023-08-30 14:07:13 -04:00
parent 57c22692b6
commit 76643e86b2

View File

@ -16,7 +16,7 @@ export interface Props {
} }
const { post, url } = Astro.props; const { post, url } = Astro.props;
const Content = post?.Content || null; const { Content } = post;
--- ---
<section class="py-8 sm:py-16 lg:py-20 mx-auto"> <section class="py-8 sm:py-16 lg:py-20 mx-auto">
@ -79,7 +79,7 @@ const Content = post?.Content || null;
Content ? ( Content ? (
<Content /> <Content />
) : ( ) : (
<Fragment set:html={post.content} /> <Fragment set:html={post.content || ""} />
) )
} }
</div> </div>