Skip to content

Commit d09b9bd

Browse files
authored
Change OG image aspect ratio for the component library (#324)
* changed og image aspect ratio * swapped og image to test * updated og image * updated og image * changed name to property and added type and explicit size * fixed description warning * fixed linting errors
1 parent d793061 commit d09b9bd

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

pages/_document.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,18 @@ export default class MyDocument extends Document {
3737
<link rel="icon" href={getAssetPath('favicon.png')} />
3838
<link rel="apple-touch-icon" href={getAssetPath('apple-touch-icon.png')} />
3939
<meta name="viewport" content="width=device-width,initial-scale=1" />
40-
<meta name="og:title" content="Primer Components" />
41-
<meta name="og:url" content="https://primer.style/components/" />
42-
<meta name="description" content="Primer components built with React.js." />
40+
<meta property="og:title" content="Primer Components" />
41+
<meta property="og:type" content="website" />
42+
<meta property="og:url" content="https://primer.style/components/" />
43+
<meta property="og:description" content="Primer components built with React.js." />
4344
<meta
44-
name="og:image"
45-
content="https://user-images.githubusercontent.com/586552/46702062-ca82eb80-cbef-11e8-8c0b-4a9252dc04c6.png"
45+
property="og:image"
46+
content="https://user-images.githubusercontent.com/586552/47590375-121cad80-d93a-11e8-89f2-a1cf108e0548.png"
4647
/>
48+
<meta property="og:image:width" content="1200" />
49+
<meta property="og:image:height" content="630" />
50+
<meta property="twitter:card" content="summary_large_image" />
51+
<meta property="twitter:site" content="@githubprimer" />
4752
{styles}
4853
</Head>
4954
<body>

0 commit comments

Comments
 (0)