Become a Pro / website · becomeapro.ai / src / lib / seo.ts
| 1 | // Page metadata shared by every page: title, description and share cards. |
| 2 | // NO SEO on any site (2026-12-02): no canonical, structured data, sitemap, llms.txt or keyword tags. |
| 3 | import type { Metadata } from "next"; |
| 4 | |
| 5 | export const SITE_URL = "https://becomeapro.ai"; |
| 6 | export const SITE_NAME = "Become a Pro"; |
| 7 | export const SITE_TITLE = "Become a Pro"; |
| 8 | export const SITE_DESCRIPTION = "Free lessons that teach the useful skills of your trade, step by step."; |
| 9 | export const SITE_SHARE_IMAGE = "/share.png"; |
| 10 | |
| 11 | type PageMeta = { |
| 12 | title: string; |
| 13 | description: string; |
| 14 | // The home page's title goes out as is instead of through the "%s | Become a Pro" template |
| 15 | absoluteTitle?: boolean; |
| 16 | noindex?: boolean; |
| 17 | }; |
| 18 | |
| 19 | export function pageMetadata({ title, description, absoluteTitle, noindex }: PageMeta): Metadata { |
| 20 | const images = [{ url: SITE_SHARE_IMAGE, width: 1200, height: 630, alt: SITE_NAME }]; |
| 21 | return { |
| 22 | title: absoluteTitle ? { absolute: title } : title, |
| 23 | description, |
| 24 | openGraph: { title, description, siteName: SITE_NAME, locale: "en_US", type: "website", images }, |
| 25 | twitter: { card: "summary_large_image", title, description, images }, |
| 26 | ...(noindex ? { robots: { index: false, follow: true } } : {}), |
| 27 | }; |
| 28 | } |