Skip to content

Commit f6597ed

Browse files
committed
Add SEO to pages
1 parent 369f796 commit f6597ed

File tree

13 files changed

+34
-432
lines changed

13 files changed

+34
-432
lines changed

.docz/app/components/Layout.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

.docz/app/components/Link.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

.docz/app/components/Seo.js

Lines changed: 0 additions & 88 deletions
This file was deleted.

.docz/app/db.json

Lines changed: 0 additions & 147 deletions
This file was deleted.

.docz/app/imports.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ typings/
5858
.cache/
5959
public
6060

61+
# docz files
62+
.docz/
63+
6164
# netlify files
6265
.netlify/
6366

@@ -68,5 +71,6 @@ public
6871
yarn-error.log
6972
.pnp/
7073
.pnp.js
74+
7175
# Yarn Integrity file
7276
.yarn-integrity

src/components/seo.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* SEO component that queries for data with
3-
* Gatsby's useStaticQuery React hook
4-
*
5-
* See: https://www.gatsbyjs.org/docs/use-static-query/
6-
*/
7-
81
import React from 'react';
92
import PropTypes from 'prop-types';
103
import Helmet from 'react-helmet';

src/pages/examples/functional-components.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
---
22
name: Functional Components
3-
route: /installation/functional-components
3+
route: /examples/functional-components
44
menu: Examples
55
---
66

7+
import SEO from '../../components/seo';
8+
9+
<SEO
10+
description="Using TypeScript with React functional components."
11+
title="Functional Components"
12+
keywords={['functional components', 'sfc', 'stateless functional components']}
13+
/>
14+
715
# Functional Components
816
Given that functional components are just functions that take in props as a parameter, we can do the following:
917

0 commit comments

Comments
 (0)