// Page metadata shared by every page: title, description and share cards. // NO SEO on any site (2026-12-02): no canonical, structured data, sitemap, llms.txt or keyword tags. import type { Metadata } from "next"; export const SITE_URL = "https://becomeapro.ai"; export const SITE_NAME = "Become a Pro"; export const SITE_TITLE = "Become a Pro"; export const SITE_DESCRIPTION = "Free lessons that teach the useful skills of your trade, step by step."; export const SITE_SHARE_IMAGE = "/share.png"; type PageMeta = { title: string; description: string; // The home page's title goes out as is instead of through the "%s | Become a Pro" template absoluteTitle?: boolean; noindex?: boolean; }; export function pageMetadata({ title, description, absoluteTitle, noindex }: PageMeta): Metadata { const images = [{ url: SITE_SHARE_IMAGE, width: 1200, height: 630, alt: SITE_NAME }]; return { title: absoluteTitle ? { absolute: title } : title, description, openGraph: { title, description, siteName: SITE_NAME, locale: "en_US", type: "website", images }, twitter: { card: "summary_large_image", title, description, images }, ...(noindex ? { robots: { index: false, follow: true } } : {}), }; }