Skip to content

Commit

Permalink
fix: final meta
Browse files Browse the repository at this point in the history
  • Loading branch information
mrskiro committed Mar 11, 2024
1 parent 2fe7ecc commit 5fe1070
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/meta/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ export const Meta = (props: Props) => {
// props.title
// )}`

const og = "https://mrskiro.dev/assets/mrskiro.png"
const og = "/assets/mrskiro.png"

const router = useRouter()
const url = `https://mrskiro.dev${router.asPath}`

/* TODO: envに移動 */
const title = `${props.title} | mrskiro.dev`
return (
<Head>
<link
Expand All @@ -25,23 +27,21 @@ export const Meta = (props: Props) => {
/>
<link rel="canonical" href={url} />

{/* TODO: envに移動 */}
<title>{`${props.title} | mrskiro.dev`}</title>
<title>{title}</title>

{props.description && (
<meta name="description" content={props.description} />
)}

<meta name="twitter:site" content="@mrskiro_" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content={og} />

<meta property="og:url" content={url} />
<meta property="og:title" content={props.title} />
<meta property="og:type" content={props.ogType} />
<meta property="og:title" content={title} />
<meta property="og:site_name" content="mrskiro.dev" />

<meta property="og:image" content={og} />
{/* <meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" /> */}
<meta property="og:type" content={props.ogType} />
</Head>
)
}

0 comments on commit 5fe1070

Please sign in to comment.