diff --git a/components/head.js b/components/head.js index b8d6d9505..c85ae2430 100644 --- a/components/head.js +++ b/components/head.js @@ -1,7 +1,7 @@ import React from 'react'; import Head from 'next/head'; -export default ({ title }) => ( +export default ({ title, description, image }) => ( ( href="https://cdn.rawgit.com/konpa/devicon/df6431e323547add1b4cf45992913f15286456d3/devicon.min.css" /> {title} - + - - + + ); diff --git a/components/header.js b/components/header.js index af24d76c8..fd37ad251 100644 --- a/components/header.js +++ b/components/header.js @@ -9,6 +9,7 @@ import GoStar from 'react-icons/lib/md/library-books'; import GoCalender from 'react-icons/lib/go/calendar'; import GoOrg from 'react-icons/lib/go/organization'; +import MetaInfo from '../config/meta-info'; import GlobalStyles from './global-styles'; import Head from './head'; @@ -26,9 +27,8 @@ Router.onRouteChangeError = () => { export default props => { const title = - props.url.pathname === '/' - ? 'Home' - : props.url.pathname.split('/')[1].toUpperCase(); + props.url.pathname === '/' ? 'home' : props.url.pathname.split('/')[1]; + const metaData = MetaInfo[title]; const navItems = [ { title: 'Home', @@ -64,7 +64,11 @@ export default props => { return (
- +