diff --git a/src/app/tools/olf/layout.tsx b/src/app/tools/olf/layout.tsx index 4d72022..e78a5c2 100644 --- a/src/app/tools/olf/layout.tsx +++ b/src/app/tools/olf/layout.tsx @@ -1,7 +1,15 @@ import { Metadata } from "next"; import { MetaHelper } from "@/helpers/MetaHelper"; -// The page itself is a client component, so its metadata (including the canonical) lives here. +// The page itself is a client component, so its metadata (including the canonical) and its h1 live here; +// the visible title comes from PageHeader, which is not a heading. export const metadata: Metadata = MetaHelper.getMetaData("Open Lesson Format Builder - Lessons.church", "Build and preview lessons in the Open Lesson Format, a free, open JSON format for sharing church curriculum between apps.", undefined, undefined, "/tools/olf"); -export default function Layout({ children }: { children: React.ReactNode }) { return children; } +export default function Layout({ children }: { children: React.ReactNode }) { + return ( + <> +

Open Lesson Format Builder

+ {children} + + ); +} diff --git a/src/app/tools/oll/layout.tsx b/src/app/tools/oll/layout.tsx index 961daac..23ef504 100644 --- a/src/app/tools/oll/layout.tsx +++ b/src/app/tools/oll/layout.tsx @@ -1,7 +1,15 @@ import { Metadata } from "next"; import { MetaHelper } from "@/helpers/MetaHelper"; -// The page itself is a client component, so its metadata (including the canonical) lives here. +// The page itself is a client component, so its metadata (including the canonical) and its h1 live here; +// the visible title comes from PageHeader, which is not a heading. export const metadata: Metadata = MetaHelper.getMetaData("Open Lesson List Builder - Lessons.church", "Build lesson lists in the Open Lesson List format to share free church curriculum programs, studies and lessons between apps.", undefined, undefined, "/tools/oll"); -export default function Layout({ children }: { children: React.ReactNode }) { return children; } +export default function Layout({ children }: { children: React.ReactNode }) { + return ( + <> +

Open Lesson List Builder

+ {children} + + ); +} diff --git a/tests/seo.spec.ts b/tests/seo.spec.ts index ba5ee65..150f54a 100644 --- a/tests/seo.spec.ts +++ b/tests/seo.spec.ts @@ -7,7 +7,8 @@ const studyPath = `${programPath}/${SEED.STUDIES.GENESIS.slug}`; const lessonPath = `${studyPath}/${SEED.LESSONS.CREATION.slug}`; const linkHref = (html: string, rel: string) => [...html.matchAll(new RegExp(`]*rel="${rel}"[^>]*>`, "g"))].map((m) => /href="([^"]*)"/.exec(m[0])?.[1]); -const jsonLd = (html: string) => [...html.matchAll(/