diff --git a/src/components/RelatedContent.js b/src/components/RelatedContent.js deleted file mode 100644 index 79b9c3798..000000000 --- a/src/components/RelatedContent.js +++ /dev/null @@ -1,98 +0,0 @@ -import React, { useContext } from 'react'; -import PropTypes from 'prop-types'; -import { css } from '@emotion/core'; -import { graphql, useStaticQuery } from 'gatsby'; -import { Button, ExternalLink, Icon } from '@newrelic/gatsby-theme-newrelic'; -import { PageContext } from './PageContext'; - -const RelatedContent = ({ className, page }) => { - const { site } = useStaticQuery(graphql` - query { - site { - siteMetadata { - repository - } - } - } - `); - const { fileRelativePath } = useContext(PageContext); - - const { - fields: { gitAuthorTime }, - } = page; - - const { - siteMetadata: { repository }, - } = site; - - return ( - - ); -}; - -RelatedContent.propTypes = { - className: PropTypes.string, - page: PropTypes.shape({ - fields: PropTypes.shape({ - gitAuthorTime: PropTypes.string, - }), - }), -}; - -export const query = graphql` - fragment RelatedContent_page on Mdx { - fields { - gitAuthorTime(formatString: "MMMM DD, YYYY") - } - } -`; - -export default RelatedContent; diff --git a/src/templates/GuideTemplate.js b/src/templates/GuideTemplate.js index 0a2447c9b..563008db0 100644 --- a/src/templates/GuideTemplate.js +++ b/src/templates/GuideTemplate.js @@ -2,11 +2,9 @@ import React from 'react'; import { graphql } from 'gatsby'; import { css } from '@emotion/core'; import PropTypes from 'prop-types'; -import MDXContainer from '../components/MDXContainer'; +import PageLayout from '../components/PageLayout'; import FeatherIcon from '../components/FeatherIcon'; -import RelatedContent from '../components/RelatedContent'; -import PageTitle from '../components/PageTitle'; import SEO from '../components/Seo'; const GuideTemplate = ({ data }) => { @@ -17,39 +15,8 @@ const GuideTemplate = ({ data }) => { return ( <> -
-
- {title} + + {duration && (
{ {duration}
)} -
- - {body} - - -
+ + {body} + + ); };