Applying Layout component in gatsby-browser
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Helmet } from 'react-helmet';
|
||||
|
||||
const Metadata = ({ title }) => (
|
||||
<Helmet>
|
||||
<title>{ title ? `Regexper - ${ title }` : 'Regexper' }</title>
|
||||
</Helmet>
|
||||
);
|
||||
|
||||
Metadata.propTypes = {
|
||||
title: PropTypes.string
|
||||
};
|
||||
|
||||
export default Metadata;
|
||||
Reference in New Issue
Block a user