diff --git a/components/Meta.tsx b/components/Meta.tsx index 97c10f8..dd1a566 100644 --- a/components/Meta.tsx +++ b/components/Meta.tsx @@ -1,24 +1,60 @@ type Props = { title?: string; description?: string; + keywords?: string; + ogDescription?: string; + ogImg?: any; + pageUrl?: string; + type?: string; + twitterDescription?: string; + twitterCard?: string; + jsonLd?: any; }; import Head from "next/head"; import ogImage from "../public/images/docs-og.webp"; -import { DEFAULT_META_TITLE, DEFAULT_META_DESCRIPTION, SITE_URL } from "../utils/text/seo"; +import { + DEFAULT_META_TITLE, + DEFAULT_META_DESCRIPTION, + SITE_URL, +} from "../utils/text/seo"; const OG_IMAGE_URL = SITE_URL + ogImage.src; -export function Meta({ title = DEFAULT_META_TITLE, description = DEFAULT_META_DESCRIPTION}: Props) { - +export function Meta({ + title = DEFAULT_META_TITLE, + description = DEFAULT_META_DESCRIPTION, + keywords, + ogDescription, + ogImg = OG_IMAGE_URL, + pageUrl, + type = "website", + twitterDescription, + twitterCard, + jsonLd, +}: Props) { return ( {title} + {keywords && } - - - + + {pageUrl && } + + + {twitterCard && } + + + {jsonLd && ( +