text: module.exports = {
    siteMetadata: {
      title: `Joshua Colvin`,
      author: `Joshua Colvin`,
      description: `Joshua Colvin's Blog`,
      siteUrl: `https://www.joshuacolvin.net`,
      social: {
        twitter: `joshuacolvin`,
      },
      menuLinks: [
        {
          name: 'Blog',
          link: '/',
        },
        {
          name: 'Tags',
          link: '/tags',
        },
      ],
    },
    plugins: [
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          path: `${__dirname}/content/blog`,
          name: `blog`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          path: `${__dirname}/content/assets`,
          name: `assets`,
        },
      },
      {
        resolve: `gatsby-transformer-remark`,
        options: {
          plugins: [
            {
              resolve: `gatsby-remark-images`,
              options: {
                maxWidth: 590,
                showCaptions: true,
              },
            },
            {
              resolve: `gatsby-remark-responsive-iframe`,
              options: {
                wrapperStyle: `margin-bottom: 1.0725rem`,
              },
            },
            `gatsby-remark-code-titles`,
            `gatsby-remark-prismjs`,
            `gatsby-remark-copy-linked-files`,
            `gatsby-remark-smartypants`,
          ],
        },
      },
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      {
        resolve: `gatsby-plugin-google-analytics`,
        options: {
          trackingId: `UA-146427619-1`,
        },
      },
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `Gatsby Starter Blog`,
          short_name: `GatsbyJS`,
          start_url: `/`,
          background_color: `#ffffff`,
          theme_color: `#663399`,
          display: `minimal-ui`,
          icon: `content/assets/favicon-32x32.png`,
        },
      },
      `gatsby-plugin-offline`,
      `gatsby-plugin-react-helmet`,
      {
        resolve: `gatsby-plugin-typography`,
        options: {
          pathToConfigModule: `src/utils/typography`,
        },
      },
      `gatsby-plugin-sitemap`,
      {
        resolve: `gatsby-plugin-sass`,
        options: {
          implementation: require('sass'),
        },
      },
      {
        resolve: 'gatsby-plugin-mailchimp',
        options: {
          endpoint: `https://joshuacolvin.us19.list-manage.com/subscribe/post?u=aea5acb0f621b128b171fd180&amp;id=bb8fb44486`,
        },
      },
      `gatsby-plugin-dark-mode`,
      {
        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: "Your Site's RSS Feed",
              // optional configuration to insert feed reference in pages:
              // if `string` is used, it will be used to create RegExp and then test if pathname of
              // current page satisfied this regular expression;
              // if not provided or `undefined`, all pages will have feed reference inserted
              match: '^/blog/',
              // optional configuration to specify external rss feed, such as feedburner
              link: 'https://feeds.feedburner.com/gatsby/blog',
            },
          ],
        },
      },
    ],
  }
  