mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-27 03:15:47 +02:00
🔖 Upgrade to Gatsby 1.8.12
This commit is contained in:
24
src/layouts/index.jsx
Normal file
24
src/layouts/index.jsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Helmet from 'react-helmet';
|
||||
import 'typeface-roboto';
|
||||
import '../assets/scss/init.scss';
|
||||
|
||||
class Layout extends React.Component {
|
||||
render() {
|
||||
const { children } = this.props;
|
||||
|
||||
return (
|
||||
<div className="layout">
|
||||
<Helmet defaultTitle="Blog by John Doe" />
|
||||
{children()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Layout.propTypes = {
|
||||
children: PropTypes.func
|
||||
};
|
||||
|
||||
export default Layout;
|
Reference in New Issue
Block a user