More work with titles & descriptions
This commit is contained in:
parent
323c77322b
commit
a1138c8c43
7 changed files with 37 additions and 23 deletions
|
|
@ -3,14 +3,20 @@ import PropTypes from 'prop-types';
|
|||
import { Meteor } from 'meteor/meteor';
|
||||
import { createContainer } from 'meteor/react-meteor-data';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
import i18n from '/imports/startup/client/i18n';
|
||||
import PageHeader from '../../components/PageHeader/PageHeader';
|
||||
import Content from '../../components/Content/Content';
|
||||
import i18n from '/imports/startup/client/i18n';
|
||||
import { Helmet } from 'react-helmet';
|
||||
|
||||
import './Page.scss';
|
||||
|
||||
const Page = ({ title, subtitle, content }) => (
|
||||
<div className="Page">
|
||||
<Helmet>
|
||||
<meta charSet="utf-8" />
|
||||
<title>{i18n.t('AppName')}: {title}</title>
|
||||
<meta name="description" content={content.substr(0, 100).lastIndexOf(' ')} />
|
||||
</Helmet>
|
||||
<PageHeader title={title} subtitle={subtitle} />
|
||||
<Content content={content} />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue