Skip to content

Commit 192c429

Browse files
committed
Added missing title and og:url to 1-off pages
1 parent 5134f71 commit 192c429

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

src/pages/404.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import Container from 'components/Container';
1313
import Header from 'components/Header';
14+
import TitleAndMetaTags from 'components/TitleAndMetaTags';
1415
import React from 'react';
1516
import {sharedStyles} from 'theme';
1617

@@ -19,6 +20,7 @@ const PageNotFound = () => (
1920
<div css={sharedStyles.articleLayout.container}>
2021
<div css={sharedStyles.articleLayout.content}>
2122
<Header>Page Not Found</Header>
23+
<TitleAndMetaTags title="React - Page Not Found" />
2224
<div css={sharedStyles.markdown}>
2325
<p>We couldn't find what you were looking for.</p>
2426
<p>

src/pages/acknowledgements.html.js

+6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
import Container from 'components/Container';
1313
import Header from 'components/Header';
14+
import TitleAndMetaTags from 'components/TitleAndMetaTags';
1415
import React from 'react';
16+
import {urlRoot} from 'site-constants';
1517
import {sharedStyles} from 'theme';
1618

1719
import names from '../../content/acknowledgements.yml';
@@ -21,6 +23,10 @@ const Acknowlegements = ({data, location}) => (
2123
<div css={sharedStyles.articleLayout.container}>
2224
<div css={sharedStyles.articleLayout.content}>
2325
<Header>Acknowledgements</Header>
26+
<TitleAndMetaTags
27+
ogUrl={`${urlRoot}/acknowledgements.html`}
28+
title="React - Acknowledgements"
29+
/>
2430

2531
<div css={sharedStyles.markdown}>
2632
<p>We'd like to thank all of our contributors:</p>

src/pages/blog/all.html.js

+6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
import Link from 'gatsby-link';
1313
import Container from 'components/Container';
1414
import Header from 'components/Header';
15+
import TitleAndMetaTags from 'components/TitleAndMetaTags';
1516
import React from 'react';
17+
import {urlRoot} from 'site-constants';
1618
import {colors, media, sharedStyles} from 'theme';
1719
import toCommaSeparatedList from 'utils/toCommaSeparatedList';
1820
import MetaTitle from 'templates/components/MetaTitle';
@@ -22,6 +24,10 @@ const AllBlogPosts = ({data}) => (
2224
<div css={sharedStyles.articleLayout.container}>
2325
<div css={sharedStyles.articleLayout.content}>
2426
<Header>All Posts</Header>
27+
<TitleAndMetaTags
28+
ogUrl={`${urlRoot}/blog/all.html`}
29+
title="React - All Posts"
30+
/>
2531
<ul
2632
css={{
2733
display: 'flex',

src/pages/docs/error-decoder.html.js

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import hex2rgba from 'hex2rgba';
1616
import MarkdownHeader from 'components/MarkdownHeader';
1717
import React from 'react';
1818
import StickyResponsiveSidebar from 'components/StickyResponsiveSidebar';
19+
import TitleAndMetaTags from 'components/TitleAndMetaTags';
1920
import {colors, sharedStyles} from 'theme';
2021
import {createLinkDocs} from 'utils/createLink';
2122
import findSectionForPath from 'utils/findSectionForPath';
@@ -47,6 +48,9 @@ const ErrorPage = ({data, location}) => (
4748
path={data.markdownRemark.fields.path}
4849
title={data.markdownRemark.frontmatter.title}
4950
/>
51+
<TitleAndMetaTags
52+
title={`React - ${data.markdownRemark.frontmatter.title}`}
53+
/>
5054

5155
<div css={sharedStyles.articleLayout.content}>
5256
<div

0 commit comments

Comments
 (0)