@politico/interactive-style
Advanced tools
Comparing version 1.3.5 to 1.4.0
@@ -11,3 +11,3 @@ import './index.css'; | ||
dir: "ltr" | ||
}), props.title && React.createElement("title", null, props.title), !props['no-favicon'] && [React.createElement("link", { | ||
}), (props.title || props.pageName) && React.createElement("title", null, props.title || props.pageName), !props['no-favicon'] && [React.createElement("link", { | ||
key: "apple-touch-icon:60x60", | ||
@@ -112,2 +112,5 @@ rel: "apple-touch-icon", | ||
}), React.createElement("meta", { | ||
property: "article:opinion", | ||
content: props.opinion | ||
}), React.createElement("meta", { | ||
key: "twitter:site", | ||
@@ -200,2 +203,3 @@ property: "twitter:site", | ||
social: null, | ||
opinion: false, | ||
utagConfig: null, | ||
@@ -202,0 +206,0 @@ helmet: null, |
{ | ||
"name": "@politico/interactive-style", | ||
"version": "1.3.5", | ||
"version": "1.4.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -10,3 +10,4 @@ import React from 'react'; | ||
state = { | ||
title: 'My Page Title', | ||
pageName: 'My Page Title', | ||
opinion: true, | ||
publishPath: 'interactives/2019/politico-style-demo/', | ||
@@ -74,2 +75,3 @@ social: { | ||
const publishPath = "interactives/2019/politico-style-demo/" | ||
const opinion = true // [true, false] | ||
const site = 'core' // ["core", "magazine"] | ||
@@ -95,3 +97,3 @@ const social = { | ||
<Head tilte={title} publishPath={publishPath} social={social} site={site} /> | ||
<Head title={title} publishPath={publishPath} social={social} site={site} opinion={opinion}/> | ||
@@ -98,0 +100,0 @@ /** |
@@ -18,4 +18,4 @@ import React from 'react'; | ||
{props.title && | ||
<title>{props.title}</title> | ||
{(props.title || props.pageName) && | ||
<title>{props.title || props.pageName }</title> | ||
} | ||
@@ -54,2 +54,3 @@ | ||
<meta key='og:type' property='og:type' content='article' />, | ||
<meta property='article:opinion' content={props.opinion} />, | ||
<meta key='twitter:site' property='twitter:site' content='@politico' />, | ||
@@ -138,2 +139,3 @@ <meta key='twitter:creator' property='twitter:creator' content='@politico' />, | ||
social: null, | ||
opinion: false, | ||
utagConfig: null, | ||
@@ -140,0 +142,0 @@ helmet: null, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34941872
51255