2016-10-12 23:15:58 +00:00
|
|
|
import React from 'react'
|
|
|
|
import Head from 'next/head'
|
|
|
|
|
|
|
|
export default () => <div>
|
|
|
|
<Head>
|
2017-10-31 21:52:51 +00:00
|
|
|
{/* this will not render */}
|
|
|
|
<meta charSet='utf-8' />
|
|
|
|
{/* this will get rendered */}
|
2016-11-17 23:06:54 +00:00
|
|
|
<meta charSet='iso-8859-5' />
|
2017-10-31 21:52:51 +00:00
|
|
|
|
2016-10-17 00:00:17 +00:00
|
|
|
<meta content='my meta' />
|
2017-10-31 21:52:51 +00:00
|
|
|
|
2018-06-01 11:12:33 +00:00
|
|
|
{/* allow duplicates for specific tags */}
|
|
|
|
<meta property='article:tag' content='tag1' key='tag1key' />
|
|
|
|
<meta property='article:tag' content='tag2' key='tag2key' />
|
2018-12-03 16:28:42 +00:00
|
|
|
<meta property='dedupe:tag' content='tag3' key='same-key' />
|
|
|
|
<meta property='dedupe:tag' content='tag4' key='same-key' />
|
2018-08-12 19:51:17 +00:00
|
|
|
<meta property='og:image' content='ogImageTag1' key='ogImageTag1Key' />
|
|
|
|
<meta property='og:image' content='ogImageTag2' key='ogImageTag2Key' />
|
|
|
|
<meta property='og:image:alt' content='ogImageAltTag1' key='ogImageAltTag1Key' />
|
|
|
|
<meta property='og:image:alt' content='ogImageAltTag2' key='ogImageAltTag2Key' />
|
|
|
|
<meta property='og:image:width' content='ogImageWidthTag1' key='ogImageWidthTag1Key' />
|
|
|
|
<meta property='og:image:width' content='ogImageWidthTag2' key='ogImageWidthTag2Key' />
|
|
|
|
<meta property='og:image:height' content='ogImageHeightTag1' key='ogImageHeightTag1Key' />
|
|
|
|
<meta property='og:image:height' content='ogImageHeightTag2' key='ogImageHeightTag2Key' />
|
|
|
|
<meta property='og:image:type' content='ogImageTypeTag1' key='ogImageTypeTag1Key' />
|
|
|
|
<meta property='og:image:type' content='ogImageTypeTag2' key='ogImageTypeTag2Key' />
|
|
|
|
<meta property='og:image:secure_url' content='ogImageSecureUrlTag1' key='ogImageSecureUrlTag1Key' />
|
|
|
|
<meta property='og:image:secure_url' content='ogImageSecureUrlTag2' key='ogImageSecureUrlTag2Key' />
|
|
|
|
<meta property='og:image:url' content='ogImageUrlTag1' key='ogImageUrlTag1Key' />
|
|
|
|
<meta property='og:image:url' content='ogImageUrlTag2' key='ogImageUrlTag2Key' />
|
2018-06-01 11:12:33 +00:00
|
|
|
|
2018-12-03 16:28:42 +00:00
|
|
|
<meta property='fb:pages' content='fbpages1' />
|
|
|
|
<meta property='fb:pages' content='fbpages2' />
|
|
|
|
|
2017-12-28 01:42:27 +00:00
|
|
|
<React.Fragment>
|
|
|
|
<title>Fragment title</title>
|
|
|
|
<meta content='meta fragment' />
|
|
|
|
</React.Fragment>
|
|
|
|
|
2017-10-31 21:52:51 +00:00
|
|
|
{/* the following 2 links tag will be rendered both */}
|
|
|
|
<link rel='stylesheet' href='/dup-style.css' />
|
|
|
|
<link rel='stylesheet' href='/dup-style.css' />
|
|
|
|
|
|
|
|
{/* only one tag will be rendered as they have the same key */}
|
|
|
|
<link rel='stylesheet' href='dedupe-style.css' key='my-style' />
|
|
|
|
<link rel='stylesheet' href='dedupe-style.css' key='my-style' />
|
2016-10-12 23:15:58 +00:00
|
|
|
</Head>
|
2018-12-03 16:28:42 +00:00
|
|
|
<h1>I can have meta tags</h1>
|
2016-10-12 23:15:58 +00:00
|
|
|
</div>
|