Skip to content

Commit 3f6fcd3

Browse files
authored
add open graph tags for twitter/x (#54960)
1 parent b4d4f29 commit 3f6fcd3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/frame/components/DefaultLayout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ export const DefaultLayout = (props: Props) => {
128128
<meta property="og:image" content={getSocialCardImage()} />
129129
</>
130130
)}
131+
{/* Twitter Meta Tags */}
132+
<meta name="twitter:card" content="summary" />
133+
<meta property="twitter:domain" content={new URL(fullUrl).hostname} />
134+
<meta property="twitter:url" content={fullUrl} />
135+
<meta name="twitter:title" content={page.fullTitle} />
136+
{page.introPlainText && <meta name="twitter:description" content={page.introPlainText} />}
137+
<meta name="twitter:image" content={getSocialCardImage()} />
131138
</Head>
132139
<a
133140
href="#main-content"

0 commit comments

Comments
 (0)