text: module.exports = {
    siteMetadata: {
      title: `Arttu Viljakainen`,
      titleTemplate: "%s · Arttu Viljakainen",
      description: `On creating digital tools and human-computer interactions in them`,
      siteUrl: `https://www.arttuv.com`,
      url: `https://www.arttuv.com`,
      image: `/static-face-image.jpg`,
      author: `Arttu Viljakainen`,
      twitterUsername: "@arttuv",
    },
    // pathPrefix is not needed in my case, but deploy to gh-pages fails without this.
    pathPrefix: "",
    plugins: [
      'gatsby-plugin-robots-txt',
      `gatsby-remark-reading-time`,
      `gatsby-plugin-react-helmet`,
      {
        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.frontmatter.path,
                    guid: site.siteMetadata.siteUrl + edge.node.frontmatter.path,
                    custom_elements: [{ "content:encoded": edge.node.html }],
                  })
                })
              },
              query: `
                {
                  allMarkdownRemark(
                    sort: { order: DESC, fields: [frontmatter___date] },
                  ) {
                    edges {
                      node {
                        excerpt
                        html
                        fields { slug }
                        frontmatter {
                          title
                          date
                          path
                        }
                      }
                    }
                  }
                }
              `,
              output: "/rss.xml",
              title: "arttuv.com 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: "^/writings/",
              // optional configuration to specify external rss feed, such as feedburner
            },
          ],
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `images`,
          path: `${__dirname}/src/images`,
        },
      },
      `gatsby-transformer-sharp`,
      `gatsby-plugin-sharp`,
      `gatsby-plugin-styled-components`,
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: `gatsby-starter-default`,
          short_name: `starter`,
          start_url: `/`,
          background_color: `#663399`,
          theme_color: `#663399`,
          display: `minimal-ui`,
          icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
        },
      },
      {
        resolve: `gatsby-plugin-google-fonts`,
        options: {
          fonts: [
            `oswald\:300,400`,
            `lora\:400,700` // you can also specify font weights and styles
          ],
          display: 'swap'
        }
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `markdown-writings`,
          path: `${__dirname}/src/markdown-pages/writings`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `markdown-pages`,
          path: `${__dirname}/src/markdown-pages/pages`,
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `mages`,
          path: `${__dirname}/src/images`,
        },
      },
      {
        resolve: `gatsby-plugin-html-attributes`,
        options: {
          lang: `en`
        }
      },
      `gatsby-transformer-remark`,
      `gatsby-plugin-sharp`,
      {
        resolve: `gatsby-transformer-remark`,
        options: {
          plugins: [
            {
              resolve: `gatsby-remark-images`,
              options: {
                // It's important to specify the maxWidth (in pixels) of
                // the content container as this plugin uses this as the
                // base for generating different widths of each image.
                maxWidth: 590,
                showCaptions: true
              },
            },
            {
              resolve: "gatsby-remark-embed-video",
              options: {
                width: 300,
                height:170, 
                ratio: 1.77, // Optional: Defaults to 16/9 = 1.77
                //height: auto, // Optional: Overrides optional.ratio
                related: false, //Optional: Will remove related videos from the end of an embedded YouTube video.
                noIframeBorder: true, //Optional: Disable insertion of <style> border: 0
                urlOverrides: [
                  {
                    id: 'youtube',
                    embedURL: (videoId) => `https://www.youtube-nocookie.com/embed/${videoId}`,
                  }
                ] //Optional: Override URL of a service provider, e.g to enable youtube-nocookie support
              }
            },
            
          ],
        },
      },
      `gatsby-plugin-catch-links`
      // this (optional) plugin enables Progressive Web App + Offline functionality
      // To learn more, visit: https://gatsby.dev/offline
      // `gatsby-plugin-offline`,
    ],
  }
  