const path = require('path')

module.exports = {
  siteMetadata: {
    title: 'unixMiB',
    description: 'Linux User Group, Università Milano Bicocca',
    keywords: 'unixMiB, Linux, Bicocca, Università, LUG, Open Source',
    author: 'unixMiB', // Fix for some sites
    //'Cristian Baldi <bld.cris.96@gmail.com>, Kowalski7cc <kowalski.7cc@gmail.com>',
    theme: '#ffffff',
    navbarVariant: 'light',
    siteUrl: 'https://unixmib.org/',
  },
  plugins: [
    'gatsby-plugin-react-helmet',
    'gatsby-plugin-dark-mode',
    'gatsby-plugin-remove-trailing-slashes',
    {
      resolve: 'gatsby-plugin-brotli',
      options: {
        extensions: ['css', 'html', 'js', 'svg'],
      },
    },
    'gatsby-plugin-sass',
    {
      resolve: 'gatsby-plugin-manifest',
      options: {
        name: 'unixMiB',
        short_name: 'unixMiB',
        start_url: '/',
        lang: 'it',
        icon_options: {
          purpose: 'maskable',
        },
        description: 'Linux User Group, Università Milano Bicocca',
        background_color: '#fffffa',
        theme_color: '#343a40',
        display: 'standalone',
        icon: './src/assets/favicon.png',
      },
    },
    // {
    //   resolve: 'gatsby-plugin-favicon',
    //   options: {
    //     appName: 'unixMiB',
    //     appDescription: 'Gruppo Utenti Linux, Università Milano Bicocca',
    //     developerName: 'Kowalski7cc',
    //     developerURL: 'https://kowalski7cc.xyz',
    //     dir: 'auto',
    //     lang: 'it-IT',
    //     background: '#fffffa',
    //     theme_color: '#343a40',
    //     display: 'standalone',
    //     orientation: 'any',
    //     start_url: '/',
    //     version: '1.0',
    //     logo: './src/assets/favicon.png',
    //     icons: {
    //       android: true,
    //       appleIcon: true,
    //       appleStartup: true,
    //       coast: true,
    //       favicons: true,
    //       firefox: true,
    //       opengraph: true,
    //       twitter: true,
    //       yandex: true,
    //       windows: true,
    //     },
    //   },
    // },
    'gatsby-plugin-offline',
    {
      resolve: 'gatsby-plugin-robots-txt',
      options: {
        policy: [
          {
            userAgent: '*',
            allow: '/',
          },
        ],
      },
    },
    'gatsby-plugin-sitemap',
    'gatsby-plugin-react-svg',
    {
      resolve: 'gatsby-plugin-sharp',
      options: {
        useMozJpeg: true,
        stripMetadata: true,
        defaultQuality: 70,
      },
    },
    'gatsby-transformer-sharp',
    {
      resolve: 'gatsby-transformer-remark',
      options: {
        plugins: [
          {
            resolve: 'gatsby-remark-copy-linked-files',
            options: {
              destinationDir: 'attachments',
            },
          },
          {
            resolve: 'gatsby-remark-images',
            options: {
              maxWidth: 1000,
              linkImagesToOriginal: true,
              sizeByPixelDensity: true,
              quality: 70,
              withWebp: true,
            },
          },
        ],
      },
    },
    'gatsby-image',
    'gatsby-plugin-catch-links',
    {
      resolve: 'gatsby-plugin-netlify',
      options: {
        headers: {
          '/sw.js': ['Cache-Control: no-cache'],
        },
        mergeSecurityHeaders: true,
        mergeLinkHeaders: true,
        mergeCachingHeaders: true,
      },
    },
    {
      resolve: 'gatsby-plugin-nprogress',
      options: {
        color: 'gray',
        showSpinner: false,
      },
    },
  ],
}

@@ -247,16 +247,22 @@
  // Fix 
+title 
 for some
@@ -1183,907 +1183,8 @@
  %7D,%0A
-    // %7B%0A    //   resolve: 'gatsby-plugin-favicon',%0A    //   options: %7B%0A    //     appName: 'unixMiB',%0A    //     appDescription: 'Gruppo Utenti Linux, Universit%C3%A0 Milano Bicocca',%0A    //     developerName: 'Kowalski7cc',%0A    //     developerURL: 'https://kowalski7cc.xyz',%0A    //     dir: 'auto',%0A    //     lang: 'it-IT',%0A    //     background: '#fffffa',%0A    //     theme_color: '#343a40',%0A    //     display: 'standalone',%0A    //     orientation: 'any',%0A    //     start_url: '/',%0A    //     version: '1.0',%0A    //     logo: './src/assets/favicon.png',%0A    //     icons: %7B%0A    //       android: true,%0A    //       appleIcon: true,%0A    //       appleStartup: true,%0A    //       coast: true,%0A    //       favicons: true,%0A    //       firefox: true,%0A    //       opengraph: true,%0A    //       twitter: true,%0A    //       yandex: true,%0A    //       windows: true,%0A    //     %7D,%0A    //   %7D,%0A    // %7D,%0A
     

Remove garbage