From a55faeeab0b7cbf8b840feafb641815240cdb76e Mon Sep 17 00:00:00 2001 From: Jordi Enric Date: Wed, 3 Apr 2024 01:41:49 +0200 Subject: [PATCH] only show published posts --- apps/zendo/app/pub/[subdomain]/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/zendo/app/pub/[subdomain]/page.tsx b/apps/zendo/app/pub/[subdomain]/page.tsx index 3088f53..ac1fb7d 100644 --- a/apps/zendo/app/pub/[subdomain]/page.tsx +++ b/apps/zendo/app/pub/[subdomain]/page.tsx @@ -11,7 +11,8 @@ async function HostedBlog({ const posts = await supa .from("public_posts_v1") .select("title, slug, published_at") - .eq("blog_slug", subdomain); + .eq("blog_slug", subdomain) + .eq("published", true); const formatDate = (date: string) => { return new Date(date).toLocaleDateString("en-US", {