diff --git a/src/layouts/MainLayout.js b/src/layouts/MainLayout.js index 1a1ca9e76..ff4360762 100644 --- a/src/layouts/MainLayout.js +++ b/src/layouts/MainLayout.js @@ -1,6 +1,7 @@ import React, { useContext, useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; +import { css } from '@emotion/core'; import { Helmet } from 'react-helmet'; import { GlobalHeader } from '@newrelic/gatsby-theme-newrelic'; @@ -11,6 +12,7 @@ import Footer from '../components/Footer'; import MobileHeader from '../components/MobileHeader'; import Sidebar from '../components/Sidebar'; import CookieApprovalDialog from '../components/CookieApprovalDialog'; +import RelatedContent from '../components/RelatedContent'; import styles from './MainLayout.module.scss'; import '../components/styles.scss'; @@ -19,10 +21,14 @@ const gdprConsentCookieName = 'newrelic-gdpr-consent'; const MainLayout = ({ children }) => { const { - site: { siteMetadata }, + site: { layout, siteMetadata }, } = useStaticQuery(graphql` query { site { + layout { + contentPadding + maxWidth + } siteMetadata { repository } @@ -66,17 +72,58 @@ const MainLayout = ({ children }) => { isOpen={isMobileNavOpen} toggle={() => setIsMobileNavOpen(!isMobileNavOpen)} /> -