Skip to content

Commit

Permalink
add description meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobo-martinez committed Dec 30, 2019
1 parent a840719 commit 7c8a358
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mock/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import uuidv1 from 'uuid/v1';
export const headData = {
title: 'Jacobo | Developer',
lang: 'en', // e.g: en, es, fr, jp
domain: 'https://cobidev.com/',
description: 'Jacobo Official Website',
};

// HERO DATA
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import 'bootstrap/dist/css/bootstrap.min.css';
import '../style/main.scss';

export default () => {
const { title, lang } = headData;
const { title, lang, description } = headData;

return (
<>
<Helmet>
<meta charSet="utf-8" />
<title>{title || 'Gatsby Simplefolio'}</title>
<html lang={lang || 'en'} />
{/* <link rel="canonical" href="http://mysite.com/example" /> */}
<meta name="description" content={description || 'Gatsby Simplefolio'} />
</Helmet>
<App />
</>
Expand Down

0 comments on commit 7c8a358

Please sign in to comment.