Moshavereh sazmani

This commit is contained in:
2026-02-19 17:56:02 +03:30
parent 21390bd024
commit b39e261ebf
12 changed files with 1265 additions and 531 deletions
+2 -3
View File
@@ -2,7 +2,6 @@ import ContentSection from "@/components/content-1";
import Features from "@/components/features-12";
import { FeaturedPostsGrid } from "@/components/featured-posts-grid";
import { getPosts } from "@/lib/wp-api";
import { HeroHeader } from "@/components/header";
import HeroSection from "@/components/hero-section";
const FEATURED_CATEGORY_ID = 3;
@@ -17,9 +16,9 @@ export default async function Home() {
orderby: "date",
order: "desc",
});
featuredPosts = result.posts;
featuredPosts = result?.posts ?? [];
} catch {
// بدون پست هم صفحه رندر می‌شود
featuredPosts = [];
}
return (