From d447dc0c9b755280428cc01e225b876158cc2664 Mon Sep 17 00:00:00 2001 From: Moris Zen Date: Wed, 12 Sep 2018 13:38:02 +0200 Subject: [PATCH] SEO Component base --- src/components/SEO.js | 18 ++++++++++++++++++ src/layouts/index.js | 8 -------- src/pages/index.js | 2 ++ 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 src/components/SEO.js diff --git a/src/components/SEO.js b/src/components/SEO.js new file mode 100644 index 0000000..fc3cbbf --- /dev/null +++ b/src/components/SEO.js @@ -0,0 +1,18 @@ +import React, { Component } from 'react' +import Helmet from 'react-helmet' +import urljoin from 'url-join' +import ImgIntro from '../images/web-development-company.svg' + +const SEO = ({ ...props }) => ( + + + {props.siteTitle + ? props.siteTitle + : 'Saburly - Digital Agency that makes you stand out'} + + + + +) + +export default SEO diff --git a/src/layouts/index.js b/src/layouts/index.js index fd0eea6..29a6dc4 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -18,14 +18,6 @@ import favicon32 from '../images/favicon32.png' const Layout = ({ children, data }) => (
( +