Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
fix: Except private blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsanzizan authored Aug 24, 2024
1 parent 045b1dc commit 3d3ede1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/parts/Blogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SectionContainer } from "../global/ui/container";
import { H1, P } from "../global/ui/text";

export default async function Blogs() {
const blogs = await getBlogs({ take: 3, orderBy: { createdAt: "desc" } });
const blogs = await getBlogs({ where: { NOT: { link: { contains: "private" } } }, take: 3, orderBy: { createdAt: "desc" } });

return (
<SectionContainer id="blogs">
Expand Down

0 comments on commit 3d3ede1

Please sign in to comment.