mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { siteConfig } from "@/config/site"
|
|
|
|
export default function Head() {
|
|
const url = process.env.NEXT_PUBLIC_APP_URL
|
|
const ogUrl = new URL(`${url}/og.jpg`)
|
|
|
|
return (
|
|
<>
|
|
<title>{`${siteConfig.name} - ${siteConfig.description}`}</title>
|
|
<meta charSet="utf-8" />
|
|
<meta name="description" content={siteConfig.description} />
|
|
<link
|
|
rel="apple-touch-icon"
|
|
sizes="180x180"
|
|
href="/apple-touch-icon.png"
|
|
/>
|
|
<link
|
|
rel="icon"
|
|
type="image/png"
|
|
sizes="32x32"
|
|
href="/favicon-32x32.png"
|
|
/>
|
|
<link
|
|
rel="icon"
|
|
type="image/png"
|
|
sizes="16x16"
|
|
href="/favicon-16x16.png"
|
|
/>
|
|
<link rel="manifest" href="/site.webmanifest" />
|
|
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content={siteConfig.name} />
|
|
<meta property="og:description" content={siteConfig.description} />
|
|
<meta property="og:url" content={url?.toString()} />
|
|
<meta property="og:image" content={ogUrl.toString()} />
|
|
<meta name="twitter:title" content={siteConfig.name} />
|
|
<meta name="twitter:description" content={siteConfig.description} />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta property="twitter:url" content={url?.toString()} />
|
|
<meta name="twitter:image" content={ogUrl.toString()} />
|
|
</>
|
|
)
|
|
}
|