text: module.exports = {
    siteMetadata: {
      title: `Fran Dieguez`,
      author: `Fran Dieguez`,
      description: `Yet another software craftmanship. Node.js, PHP, Angular, React, Golang, ...`,
      keywords: ['Fran Dieguez', 'Software Craftmanship', 'Agile'],
      siteUrl: `https://www.frandieguez.dev`,
      social: {
        twitter: `@frandieguez`,
      },
    },
    plugins: [
      // `gatsby-plugin-styled-component`
      {
        resolve: 'gatsby-plugin-use-dark-mode',
        options: {
          classNameDark: 'dark-mode',
          classNameLight: 'light-mode',
          storageKey: 'darkMode',
          minify: true,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          path: `${__dirname}/content`,
          name: `posts`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          path: `${__dirname}/static/assets`,
          name: `assets`,
        },
      },
      `gatsby-plugin-mdx`,
      {
        resolve: `gatsby-transformer-remark`,
        options: {
          plugins: [
            {
              resolve: 'gatsby-remark-prismjs',
              options: {
                inlineCodeMarker: '÷',
              },
            },
            {
              resolve: `gatsby-remark-images`,
              options: {
                maxWidth: 970,
                linkImagesToOriginal: false,
                tracedSVG: true,
              },
            },
            {
              resolve: `gatsby-remark-responsive-iframe`,
              options: {
                wrapperStyle: `margin-bottom: 1.0725rem`,
              },
            },
            `gatsby-remark-copy-linked-files`,
            'gatsby-remark-smartypants',
            {
              resolve: 'gatsby-remark-external-links',
              options: {
                target: '_blank',
              },
            },
            'gatsby-remark-autolink-headers',
            {
              resolve: 'gatsby-remark-prismjs',
              options: {
                inlineCodeMarker: '÷',
              },
            },
  //           {
  //             resolve: `@raae/gatsby-remark-oembed`,
  //             options: {
  //               usePrefix: true,
  //               providers: {
  //                 // Important to exclude providers
  //                 // that adds js to the page.
  //                 // If you do not need them.
  //                 exclude: ['Reddit'],
                  
  //                 settings: {
  //                   // Ex. Show all Twitter embeds with the dark theme, and disables ad tracking
  //                   Twitter: {
  //                     theme: 'dark',
  //                     dnt: true
  //                   },
  //                 },
  //               },
  //             },
  //           },
          ],
        },
      },
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      `gatsby-plugin-react-svg`,
      `gatsby-plugin-feed`,
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `Fran Dieguez | Yet another software craftmanship`,
          short_name: `Fran Dieguez`,
          start_url: `/`,
          background_color: `#ffffff`,
          theme_color: `#00aeef`,
          display: `minimal-ui`,
          icon: `static/favicon.png`,
        },
      },
      `gatsby-plugin-offline`,
      `gatsby-plugin-react-helmet`,
      {
        resolve: `gatsby-plugin-typography`,
        options: {
          pathToConfigModule: `src/utils/typography`,
        },
      },
      `gatsby-plugin-sass`,
      `gatsby-plugin-sitemap`,
      {
        resolve: `gatsby-plugin-feed`,
        options: {
          query: `
            {
              site {
                siteMetadata {
                  title
                  description
                  siteUrl
                  site_url: siteUrl
                }
              }
            }
          `,
          feeds: [
            {
              serialize: ({ query: { site, allMarkdownRemark } }) => {
                return allMarkdownRemark.edges.map((edge) => {
                  return Object.assign({}, edge.node.frontmatter, {
                    description: edge.node.excerpt,
                    date: edge.node.frontmatter.date,
                    url: site.siteMetadata.siteUrl + edge.node.fields.slug,
                    guid: site.siteMetadata.siteUrl + edge.node.fields.slug,
                    custom_elements: [{ 'content:encoded': edge.node.html }],
                  });
                });
              },
              query: `
                {
                  allMarkdownRemark(
                    limit: 1000,
                    sort: { order: DESC, fields: [frontmatter___date] },
                    filter: {frontmatter: { published: { eq: true } }}
                  ) {
                    edges {
                      node {
                        excerpt
                        html
                        fields { slug }
                        frontmatter {
                          title
                          date
                        }
                      }
                    }
                  }
                }
              `,
              output: '/rss.xml',
              title: 'frandieguez.com RSS Feed',
            },
          ],
        },
      },
    ],
  };
  