Skip to content

Commit

Permalink
Added missing title and og:url to 1-off pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Oct 4, 2017
1 parent 5134f71 commit 192c429
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/404.js
Expand Up @@ -11,6 +11,7 @@

import Container from 'components/Container';
import Header from 'components/Header';
import TitleAndMetaTags from 'components/TitleAndMetaTags';
import React from 'react';
import {sharedStyles} from 'theme';

Expand All @@ -19,6 +20,7 @@ const PageNotFound = () => (
<div css={sharedStyles.articleLayout.container}>
<div css={sharedStyles.articleLayout.content}>
<Header>Page Not Found</Header>
<TitleAndMetaTags title="React - Page Not Found" />
<div css={sharedStyles.markdown}>
<p>We couldn't find what you were looking for.</p>
<p>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/acknowledgements.html.js
Expand Up @@ -11,7 +11,9 @@

import Container from 'components/Container';
import Header from 'components/Header';
import TitleAndMetaTags from 'components/TitleAndMetaTags';
import React from 'react';
import {urlRoot} from 'site-constants';
import {sharedStyles} from 'theme';

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

<div css={sharedStyles.markdown}>
<p>We'd like to thank all of our contributors:</p>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/blog/all.html.js
Expand Up @@ -12,7 +12,9 @@
import Link from 'gatsby-link';
import Container from 'components/Container';
import Header from 'components/Header';
import TitleAndMetaTags from 'components/TitleAndMetaTags';
import React from 'react';
import {urlRoot} from 'site-constants';
import {colors, media, sharedStyles} from 'theme';
import toCommaSeparatedList from 'utils/toCommaSeparatedList';
import MetaTitle from 'templates/components/MetaTitle';
Expand All @@ -22,6 +24,10 @@ const AllBlogPosts = ({data}) => (
<div css={sharedStyles.articleLayout.container}>
<div css={sharedStyles.articleLayout.content}>
<Header>All Posts</Header>
<TitleAndMetaTags
ogUrl={`${urlRoot}/blog/all.html`}
title="React - All Posts"
/>
<ul
css={{
display: 'flex',
Expand Down
4 changes: 4 additions & 0 deletions src/pages/docs/error-decoder.html.js
Expand Up @@ -16,6 +16,7 @@ import hex2rgba from 'hex2rgba';
import MarkdownHeader from 'components/MarkdownHeader';
import React from 'react';
import StickyResponsiveSidebar from 'components/StickyResponsiveSidebar';
import TitleAndMetaTags from 'components/TitleAndMetaTags';
import {colors, sharedStyles} from 'theme';
import {createLinkDocs} from 'utils/createLink';
import findSectionForPath from 'utils/findSectionForPath';
Expand Down Expand Up @@ -47,6 +48,9 @@ const ErrorPage = ({data, location}) => (
path={data.markdownRemark.fields.path}
title={data.markdownRemark.frontmatter.title}
/>
<TitleAndMetaTags
title={`React - ${data.markdownRemark.frontmatter.title}`}
/>

<div css={sharedStyles.articleLayout.content}>
<div
Expand Down

0 comments on commit 192c429

Please sign in to comment.