let siteGATrackingID = "UA-90678216-1" // Tracking code ID for google analytics.

module.exports = {
  siteMetadata: {
    title: `chester.codes`,
    author: {
      name: `Chester Burbidge`,
      summary: `who likes cool tech.`,
    },
    description: `Website and blog of Chester Burbidge`,
    siteUrl: `https://chester.codes/`,
    social: {
      twitter: `chestercodes`,
    },
    menuLinks: [
      {
        name: 'home',
        link: '/'
      },
      {
        name: 'cv',
        link: '/cv'
      },
      {
        name: 'etc',
        link: '/etc'
      }
    ]
  },
  plugins: [
    `gatsby-plugin-image`,
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        path: `${__dirname}/content/posts`,
        name: `blog`,
      },
    },
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `images`,
        path: `${__dirname}/src/images`,
      },
    },
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          {
            resolve: `gatsby-remark-images`,
            options: {
              maxWidth: 630,
            },
          },
          {
            resolve: `gatsby-remark-responsive-iframe`,
            options: {
              wrapperStyle: `margin-bottom: 1.0725rem`,
            },
          },
          `gatsby-remark-prismjs`,
          `gatsby-remark-copy-linked-files`,
          `gatsby-remark-smartypants`,
          `gatsby-remark-reading-time`,
        ],
      },
    },
    `gatsby-transformer-sharp`,
    `gatsby-plugin-sharp`,
    {
      resolve: `gatsby-plugin-google-analytics`,
      options: {
        trackingId: siteGATrackingID,
      },
    },
    {
      resolve: `gatsby-plugin-feed`,
      options: {
        query: `
          {
            site {
              siteMetadata {
                title
                description
                siteUrl
                site_url: siteUrl
              }
            }
          }
        `,
        feeds: [
          {
            serialize: ({ query: { site, allMarkdownRemark } }) => {
              return allMarkdownRemark.nodes.map(node => {
                return Object.assign({}, node.frontmatter, {
                  description: node.excerpt,
                  date: node.frontmatter.date,
                  url: site.siteMetadata.siteUrl + node.fields.slug,
                  guid: site.siteMetadata.siteUrl + node.fields.slug,
                  custom_elements: [{ "content:encoded": node.html }],
                })
              })
            },
            query: `
              {
                allMarkdownRemark(
                  sort: { order: DESC, fields: [frontmatter___date] },
                ) {
                  nodes {
                    excerpt
                    html
                    fields {
                      slug
                    }
                    frontmatter {
                      title
                      date
                    }
                  }
                }
              }
            `,
            output: "/rss.xml",
            title: "chester.codes RSS Feed",
          },
        ],
      },
    },
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: `chester.codes`,
        short_name: `chester.codes`,
        start_url: `/`,
        background_color: `#ffffff`,
        // This will impact how browsers show your PWA/website
        // https://css-tricks.com/meta-theme-color-and-trickery/
        // theme_color: `#663399`,
        display: `minimal-ui`,
        icon: `src/images/profile-pic.png`, // This path is relative to the root of the site.
      },
    },
    `gatsby-plugin-react-helmet`,
    // this (optional) plugin enables Progressive Web App + Offline functionality
    // To learn more, visit: https://gatsby.dev/offline
    // `gatsby-plugin-offline`,
  ],
}

@@ -1,86 +1,4 @@
-let siteGATrackingID = %22UA-90678216-1%22 // Tracking code ID for google analytics.%0A%0A
 modu
@@ -1486,134 +1486,8 @@
   %7B%0A
-      resolve: %60gatsby-plugin-google-analytics%60,%0A      options: %7B%0A        trackingId: siteGATrackingID,%0A      %7D,%0A    %7D,%0A    %7B%0A
     
@@ -2970,702 +2970,35 @@
     
-%7B%0A      resolve: %60gatsby-plugin-manifest%60,%0A      options: %7B%0A        name: %60chester.codes%60,%0A        short_name: %60chester.codes%60,%0A        start_url: %60/%60,%0A        background_color: %60#ffffff%60,%0A        // This will impact how browsers show your PWA/website%0A        // https://css-tricks.com/meta-theme-color-and-trickery/%0A        // theme_color: %60#663399%60,%0A        display: %60minimal-ui%60,%0A        icon: %60src/images/profile-pic.png%60, // This path is relative to the root of the site.%0A      %7D,%0A    %7D,%0A    %60gatsby-plugin-react-helmet%60,%0A    // this (optional) plugin enables Progressive Web App + Offline functionality%0A    // To learn more, visit: https://gatsby.dev/offline%0A    // %60gatsby-plugin-offline
+%60gatsby-plugin-react-helmet
 %60,%0A 

Remove google analytics