import type { Metadata } from "next"; import { cookies } from "next/headers"; import { ComingSoon } from "@/site/ComingSoon"; import { loadContent } from "@/site/load"; import { churchLd, pageMetadata } from "@/site/meta"; import { Sections } from "@/site/sections"; import { Shell } from "@/site/Shell"; export async function generateMetadata(): Promise { const c = await loadContent(); if (c.mode === "coming-soon") { // A real page (HTTP 200) that's never indexed (§5, decision 14). return { title: { absolute: c.church ? `${c.church.name}: coming soon` : "Coming soon" }, robots: { index: false, follow: true } }; } const home = c.snapshot.pages.find((p) => p.kind === "home"); return home ? pageMetadata(c, home) : {}; } export default async function Home() { const c = await loadContent(); if (c.mode === "coming-soon") return ; const home = c.snapshot.pages.find((p) => p.kind === "home"); const sections = home?.sections ?? []; const ld = churchLd(c, "/"); return ( {ld &&