diff --git a/gatsby-config.js b/gatsby-config.js index 42a9cd8..f6d3dbc 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -15,7 +15,6 @@ module.exports = { }, plugins: [ "gatsby-plugin-styled-components", - "gatsby-plugin-sitemap", { resolve: "gatsby-source-filesystem", options: { @@ -34,5 +33,6 @@ module.exports = { "gatsby-transformer-remark", `gatsby-plugin-sharp`, `gatsby-transformer-sharp`, + `gatsby-plugin-react-helmet`, ], } diff --git a/package.json b/package.json index b4d6bc9..678e0e0 100644 --- a/package.json +++ b/package.json @@ -19,13 +19,14 @@ "babel-plugin-styled-components": "^1.11.1", "dotenv": "^8.2.0", "gatsby": "^2.24.79", + "gatsby-plugin-react-helmet": "^3.8.0", "gatsby-plugin-sharp": "^2.6.43", - "gatsby-plugin-sitemap": "^2.4.17", "gatsby-plugin-styled-components": "^3.3.14", "gatsby-source-contentful": "^3.0.3", "gatsby-source-filesystem": "^2.3.35", "gatsby-transformer-remark": "^2.8.46", "gatsby-transformer-sharp": "^2.5.20", + "gh-pages": "^3.1.0", "jsonp": "^0.2.1", "moment": "^2.29.1", "query-string": "^6.13.6", @@ -33,11 +34,10 @@ "react-cookie-consent": "^5.2.0", "react-dom": "^16.12.0", "react-feather": "^2.0.8", - "react-helmet": "^6.1.0", + "react-helmet": "^5.2.1", "react-stickynode": "^3.0.4", "react-use": "^15.3.4", - "styled-components": "^5.2.0", - "gh-pages": "^3.1.0" + "styled-components": "^5.2.0" }, "devDependencies": { "prettier": "2.1.2" diff --git a/src/components/Layout.js b/src/components/Layout.js index 897af1a..f47355f 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -2,9 +2,9 @@ import React from "react" import styled, { ThemeProvider } from "styled-components" import Header from "./Header" import Footer from "./Footer" -import SiteMetadata from "./SiteMetadata" import { lightTheme } from "../utils/themes/light" import CookieBanner from "./CookieBanner" +import SEO from "./SEO" const Layout = ({ children, @@ -16,20 +16,22 @@ const Layout = ({ location, }) => { return ( - - - -
- {children} -