Skip to content

Commit 2b0996c

Browse files
Ben Forsheyjastack
authored andcommitted
add unique titles to docs, tutorial, blog (gatsbyjs#3550)
1 parent bc433fb commit 2b0996c

File tree

8 files changed

+39
-4
lines changed

8 files changed

+39
-4
lines changed

www/src/pages/blog/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React from "react"
2+
import Helmet from "react-helmet"
3+
24
import Container from "../../components/container"
35
import BlogPostPreviewItem from "../../components/blog-post-preview-item"
46

@@ -19,6 +21,9 @@ class BlogPostsIndex extends React.Component {
1921
},
2022
}}
2123
>
24+
<Helmet>
25+
<title>Blog</title>
26+
</Helmet>
2227
<Container
2328
css={{
2429
[presets.Tablet]: {
@@ -67,11 +72,11 @@ class BlogPostsIndex extends React.Component {
6772
marginRight: rhythm(-options.blockMarginBottom * 2),
6873
transition: `transform ${presets.animation.speedDefault} ${
6974
presets.animation.curveDefault
70-
}, box-shadow ${presets.animation.speedDefault} ${
75+
}, box-shadow ${presets.animation.speedDefault} ${
7176
presets.animation.curveDefault
72-
}, padding ${presets.animation.speedDefault} ${
77+
}, padding ${presets.animation.speedDefault} ${
7378
presets.animation.curveDefault
74-
}`,
79+
}`,
7580
"&:hover": {
7681
transform: `translateY(-4px)`,
7782
boxShadow: `0 10px 42px rgba(25, 17, 34, 0.1)`,

www/src/pages/docs/bound-action-creators.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react"
2+
import Helmet from "react-helmet"
23

34
import Functions from "../../components/function-list"
45
import { rhythm, scale } from "../../utils/typography"
@@ -8,6 +9,9 @@ class ActionCreatorsDocs extends React.Component {
89
render() {
910
return (
1011
<Container>
12+
<Helmet>
13+
<title>Bound Action Creators</title>
14+
</Helmet>
1115
<h1 css={{ marginTop: 0 }}>Bound Action Creators</h1>
1216
<p>
1317
Gatsby uses

www/src/pages/docs/browser-apis.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react"
2+
import Helmet from "react-helmet"
23

34
import Functions from "../../components/function-list"
45
import { rhythm, scale } from "../../utils/typography"
@@ -8,6 +9,9 @@ class BrowserAPIDocs extends React.Component {
89
render() {
910
return (
1011
<Container>
12+
<Helmet>
13+
<title>Browser APIs</title>
14+
</Helmet>
1115
<h1 css={{ marginTop: 0 }}>Gatsby Browser APIs</h1>
1216
<h2 css={{ marginBottom: rhythm(1 / 2) }}>Usage</h2>
1317
<p css={{ marginBottom: rhythm(1) }}>

www/src/pages/docs/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react"
22
import Link from "gatsby-link"
3+
import Helmet from "react-helmet"
34

45
import SidebarBody from "../../components/sidebar-body"
56
import docsSidebar from "./doc-links.yaml"
@@ -10,6 +11,9 @@ class IndexRoute extends React.Component {
1011
render() {
1112
return (
1213
<Container>
14+
<Helmet>
15+
<title>Docs</title>
16+
</Helmet>
1317
<h1 css={{ marginTop: 0 }}>Get started</h1>
1418
<p>Gatsby is a blazing-fast static site generator for React.</p>
1519
<h2>Install Gatsby{`'`}s command line tool</h2>

www/src/pages/docs/node-apis.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react"
2+
import Helmet from "react-helmet"
23

34
import Functions from "../../components/function-list"
45
import { rhythm, scale } from "../../utils/typography"
@@ -8,6 +9,9 @@ class NodeAPIDocs extends React.Component {
89
render() {
910
return (
1011
<Container>
12+
<Helmet>
13+
<title>Node APIs</title>
14+
</Helmet>
1115
<h1 css={{ marginTop: 0 }}>Gatsby Node APIs</h1>
1216
<p>
1317
Gatsby gives plugins and site builders many APIs for controlling your

www/src/pages/docs/ssr-apis.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react"
2+
import Helmet from "react-helmet"
23

34
import Functions from "../../components/function-list"
45
import { rhythm, scale } from "../../utils/typography"
@@ -8,6 +9,9 @@ class SSRAPIs extends React.Component {
89
render() {
910
return (
1011
<Container>
12+
<Helmet>
13+
<title>SSR APIs</title>
14+
</Helmet>
1115
<h1 css={{ marginTop: 0 }}>Gatsby Server Rendering APIs</h1>
1216
<h2 css={{ marginBottom: rhythm(1 / 2) }}>Usage</h2>
1317
<p css={{ marginBottom: rhythm(1) }}>

www/src/pages/features.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React, { Component } from "react"
2+
import Helmet from "react-helmet"
3+
24
import EvaluationTable from "../components/evaluation-table"
35
import EvaluationCell from "../components/evaluation-cell"
46
import FuturaParagraph from "../components/futura-paragraph"
@@ -67,6 +69,9 @@ const LegendTable = () => {
6769

6870
return (
6971
<div>
72+
<Helmet>
73+
<title>Features</title>
74+
</Helmet>
7075
<div
7176
css={{
7277
border: `1px solid ${legendBorderColor}`,
@@ -151,7 +156,7 @@ const FeaturesHeader = () => (
151156
</div>
152157
)
153158

154-
const getFeaturesData = function(data) {
159+
const getFeaturesData = function (data) {
155160
const sections = (data || [])
156161
.map((row, i) => (row.node.Category ? i : -1))
157162
.filter(rowNum => rowNum !== -1)

www/src/pages/tutorial.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import React from "react"
2+
import Helmet from "react-helmet"
23
import Link from "gatsby-link"
4+
35
import Container from "../components/container"
46

57
export default () => (
68
<Container>
9+
<Helmet>
10+
<title>Tutorial</title>
11+
</Helmet>
712
<h1 css={{ marginTop: 0 }}>Gatsby.js Tutorial</h1>
813
<p>
914
Hi! We’re so happy you decided to try using Gatsby. This tutorial has (or

0 commit comments

Comments
 (0)