Refactor SEO component

This commit is contained in:
Moris Zen
2018-09-12 14:35:30 +02:00
parent 5f6b589e9f
commit 4fae11d05d
2 changed files with 38 additions and 44 deletions

View File

@@ -1,6 +1,7 @@
import React, { Component } from 'react'
import Helmet from 'react-helmet'
import Prism from 'prismjs'
import SEO from '../components/SEO'
require('prismjs/themes/prism-tomorrow.css')
@@ -19,16 +20,8 @@ class PostDefault extends Component {
const { data } = this.props
return (
<PageTransition>
<SEO siteTitle={data.wordpressPost.title} siteDescription="We are always on a lookout for exciting challenges. Feel free to contact us if you want to start something great or just have any questions" siteImage={data.wordpressPost.featured_media.source_url} siteUrl={`https://www.saburly.com/blog/${data.wordpressPost.slug}`} />
<Helmet
title={`${data.wordpressPost.title} - Saburly.com`}
meta={[
{ name: 'description', content: 'We code & design great software' },
{
name: 'keywords',
content:
'software, design, coding, programming, code, consulting',
},
]}
link={[
{ rel: 'shortcut icon', type: 'image/png', href: `${favicon32}` },
]}