1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 20:35:29 -04:00
This commit is contained in:
2025-05-18 23:38:56 -04:00
parent f272fb8b5f
commit 2796ce189b
11 changed files with 110 additions and 164 deletions
+13 -3
View File
@@ -142,9 +142,19 @@ const Page = async ({ params }: { params: Promise<{ slug: string }> }) => {
<MDXContent />
<Suspense fallback={<CommentsSkeleton />}>
<Comments slug={`${POSTS_DIR}/${frontmatter!.slug}`} closed={frontmatter!.noComments} />
</Suspense>
<section id="comments" className="isolate my-8 w-full border-t-2 pt-8">
<div className="mx-auto w-full max-w-3xl space-y-6">
{frontmatter!.noComments ? (
<div className="bg-muted/40 flex justify-center rounded-lg px-6 py-12">
<p className="text-center text-lg font-medium">Comments are closed.</p>
</div>
) : (
<Suspense fallback={<CommentsSkeleton />}>
<Comments slug={`${POSTS_DIR}/${frontmatter!.slug}`} />
</Suspense>
)}
</div>
</section>
</>
);
};