feat(v2): better twitter preview meta tag (#1676)

* fix(v2): remove unwanted scale zoom due to initial-scale meta tag

* use summary meta
This commit is contained in:
Endi 2019-07-19 01:06:59 +07:00 committed by GitHub
parent 52e67a1c35
commit 381dd75105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View file

@ -66,10 +66,7 @@ function Layout(props) {
<meta name="twitter:image:alt" content={`Image for ${metaTitle}`} />
)}
{permalink && <meta property="og:url" content={siteUrl + permalink} />}
<meta
name="twitter:card"
content={image || favicon ? 'summary_large_image' : 'summary'}
/>
<meta name="twitter:card" content="summary" />
</Head>
<Navbar />
{children}