Skip to content

Commit

Permalink
Merge 14979f9 into 3388186
Browse files Browse the repository at this point in the history
  • Loading branch information
GoreStarry committed Aug 22, 2018
2 parents 3388186 + 14979f9 commit b451753
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
21 changes: 12 additions & 9 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ const {
publicRuntimeConfig: { GA_TRACKER, AUTOTRACK_FILENAME },
} = getConfig();

const SITE_STRUCTURED_DATA = JSON.stringify({
'@context': 'http://schema.org',
'@type': 'WebSite',
name: 'Cofacts',
alternateName: '真的假的——轉傳訊息查證',
url: 'https://cofacts.g0v.tw',
});
// issue #128
// const SITE_STRUCTURED_DATA = JSON.stringify({
// '@context': 'http://schema.org',
// '@type': 'WebSite',
// name: 'Cofacts',
// alternateName: '真的假的——轉傳訊息查證',
// url: 'https://cofacts.g0v.tw',
// });

class MyDocument extends Document {
static getInitialProps({ renderPage }) {
Expand Down Expand Up @@ -54,10 +55,12 @@ class MyDocument extends Document {
<body>
<Main />
<NextScript />
<script
{/* issue #128
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: SITE_STRUCTURED_DATA }}
/>
/>
*/}
</body>
</html>
);
Expand Down
Loading

0 comments on commit b451753

Please sign in to comment.