Skip to content

Commit fbdc9f8

Browse files
committed
Extra og metadata
1 parent 3643875 commit fbdc9f8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

components/Meta/OtherMeta.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const OtherMeta: React.FunctionComponent<IOtherMetaProps> = ({ image, typ
1414
return (
1515
<Head>
1616
<link rel="canonical" href={`${publicUrl()}${router?.asPath || ""}`} />
17-
17+
1818
<meta property="og:type" content={type || "website"} />
1919
<meta property="twitter:card" content="summary_large_image" />
2020

@@ -23,6 +23,9 @@ export const OtherMeta: React.FunctionComponent<IOtherMetaProps> = ({ image, typ
2323

2424
<meta property="og:image" content={`${publicUrl()}/${image}`} />
2525
<meta property="twitter:image" content={`${publicUrl()}/${image}`} />
26+
27+
<meta property="og:type" content="website" />
28+
<meta property="twitter:domain" content="beta.frontmatter.codes" />
2629
</Head>
2730
);
2831
};

pages/_document.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class MyDocument extends Document {
2020
<link rel="manifest" href="/site.webmanifest" />
2121

2222
<script async src={`https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}`} />
23-
<script dangerouslySetInnerHTML={{__html: `
23+
<script dangerouslySetInnerHTML={{
24+
__html: `
2425
window.dataLayer = window.dataLayer || [];
2526
function gtag(){dataLayer.push(arguments);}
2627
gtag('js', new Date());
@@ -33,7 +34,7 @@ class MyDocument extends Document {
3334

3435
<body className={`fadeIn bg-vulcan-500 text-whisper-500`}>
3536
<Main />
36-
37+
3738
<NextScript />
3839
</body>
3940
</Html>

0 commit comments

Comments
 (0)