import { HomeCover } from "@/components/home-page/HomeCover"; import { Button } from "@/components/ui/button"; import { Separator } from "@/components/ui/separator"; import { Footer } from "@/components/utils/Footer"; import { ContentContainer, Page } from "@/components/utils/Layout"; import { NavBar } from "@/components/utils/NavBar"; import { PostList } from "@/components/utils/PostList"; import { SEO } from "@/components/utils/SEO"; import { LatestPostCountInHomePage } from "@/consts/consts"; import { Config } from "@/data/config"; import { sortedPosts } from "@/lib/post-process"; import { generateRSSFeed } from "@/lib/rss"; import type { TPostListItem } from "@/types/docs.type"; import type { GetStaticProps } from "next"; import Link from "next/link"; import { LuPenTool } from "react-icons/lu"; import { RiStarFill } from "react-icons/ri"; type HomePageProps = { pinnedPostList: TPostListItem[]; latestPostList: TPostListItem[]; }; export default function Home(props: HomePageProps) { return ( {props.pinnedPostList.length !== 0 && (

{"PINNED POSTS"}

)} {props.latestPostList.length !== 0 && (

{"LATEST POSTS"}

)}