Skip to content

Instantly share code, notes, and snippets.

@RioChndr
Created March 6, 2023 04:05
Show Gist options
  • Save RioChndr/b209fc4f9ce9f522ebe613d745a23d23 to your computer and use it in GitHub Desktop.
Save RioChndr/b209fc4f9ce9f522ebe613d745a23d23 to your computer and use it in GitHub Desktop.
Important meta data
function ImportantMetadata() {
const logo = "/favicon.png"
const title = ""
const description = ""
return (
<>
<title>{title}</title>
<link rel="icon" href={logo} />
<link rel="shortcut icon" type="image/x-icon" href={logo} />
<link rel="apple-touch-icon" sizes="180x180" href={logo} />
<meta name="theme-color" content="#7b46f6" />
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta itemProp="name" content={title} />
<meta itemProp="description" content={description} />
<meta itemProp="image" content={logo} />
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={logo} />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={logo} />
</>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment