mirror of
https://github.com/jordienr/zenblog.git
synced 2026-09-27 01:30:30 -04:00
only show published posts
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user