Skip to content

Commit fbd1b9b

Browse files
Update metadata for Twitter image preview (#2126)
1 parent 44f4b1b commit fbd1b9b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

docusaurus.config.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,48 @@ const config = {
205205
name: "keywords",
206206
content: "MetaMask, SDK, Wallet, API, Dapp, App, Connect, Delegation, Toolkit, Documentation, Smart, Account, Snaps, Infura, Services, Dashboard",
207207
},
208+
// Twitter-specific meta tags
209+
{
210+
name: "twitter:card",
211+
content: "summary_large_image",
212+
},
213+
{
214+
name: "twitter:image",
215+
content: "https://docs.metamask.io/img/metamaskog.jpeg",
216+
},
217+
{
218+
name: "twitter:image:alt",
219+
content: "MetaMask Developer Documentation",
220+
},
221+
{
222+
name: "twitter:site",
223+
content: "@MetaMask",
224+
},
225+
{
226+
name: "twitter:creator",
227+
content: "@MetaMask",
228+
},
229+
// Open Graph meta tags for better social sharing
230+
{
231+
property: "og:image",
232+
content: "https://docs.metamask.io/img/metamaskog.jpeg",
233+
},
234+
{
235+
property: "og:image:width",
236+
content: "1200",
237+
},
238+
{
239+
property: "og:image:height",
240+
content: "630",
241+
},
242+
{
243+
property: "og:image:alt",
244+
content: "MetaMask Developer Documentation",
245+
},
246+
{
247+
property: "og:type",
248+
content: "website",
249+
},
208250
],
209251
image: '/img/metamaskog.jpeg',
210252
colorMode: {

0 commit comments

Comments
 (0)