diff --git a/src/components/Page/Page.js b/src/components/Page/Page.js index 13c81884..3c35371a 100644 --- a/src/components/Page/Page.js +++ b/src/components/Page/Page.js @@ -3,6 +3,7 @@ import Helmet from 'react-helmet'; import { withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; import classNames from 'classnames'; +import config from '../../config'; import { canonicalURL, metaTagProps } from '../../util/seo'; import facebookImage from '../../assets/saunatimeFacebook-1200x630.jpg'; @@ -79,7 +80,8 @@ class PageComponent extends Component { const { pathname, search = '' } = history.location; const pathWithSearch = `${pathname}${search}`; - const schemaTitle = intl.formatMessage({ id: 'Page.schemaTitle' }); + const siteTitle = config.siteTitle; + const schemaTitle = intl.formatMessage({ id: 'Page.schemaTitle' }, { siteTitle }); const schemaDescription = intl.formatMessage({ id: 'Page.schemaDescription' }); const metaTitle = title || schemaTitle; const metaDescription = description || schemaDescription; @@ -128,6 +130,8 @@ class PageComponent extends Component { > {title} + + {metaTags}