diff --git a/src/app/page.tsx b/src/app/page.tsx index f642d0b..78a622d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,26 +1,24 @@ import type { Home } from "@/sanity/sanity.types"; - import { sanityFetch } from "@/sanity/client"; import Link from "next/link"; const HOME_QUERY = `*[_type == "home"]`; - export default async function IndexPage() { - const result = await sanityFetch({ query: HOME_QUERY, stega: false }); + const result = await sanityFetch({ query: HOME_QUERY }); const home: Home | null = result.data.length > 0 ? result.data[0] : null; return ( -
- Blog

- {home ? ( - <> -

{home.title}

-

{home.subtitle}

- - ) : ( -

- )} -
+
+ Blog

+ {home ? ( + <> +

{home.title}

+

{home.subtitle}

+ + ) : ( +

+ )} +
); } \ No newline at end of file