From 9d534589404b9f462a005d091d2f5aa12018ea66 Mon Sep 17 00:00:00 2001 From: Elinorre Date: Sat, 8 Feb 2020 16:50:41 +0300 Subject: [PATCH] some global changes --- gatsby-config.js | 13 +++++++++++-- gatsby-node.js | 2 -- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index b1585aa..bd7ab9d 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -46,11 +46,20 @@ module.exports = { { resolve: `gatsby-plugin-manifest`, options: { - name: `npm-site`, + name: `NPM group`, short_name: `npm`, + lang: `ru`, start_url: `/`, display: `minimal-ui`, - icon: `src/images/icon.png`, // This path is relative to the root of the site. + // icon: `src/images/icon.png`, // This path is relative to the root of the site. + localize: [ + { + start_url: `/en/`, + lang: `en`, + name: `NPM group`, + short_name: `npm`, + }, + ], }, }, `gatsby-plugin-netlify-cms`, diff --git a/gatsby-node.js b/gatsby-node.js index be64ebf..4e4e7b6 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,6 +1,4 @@ const path = require('path') -const { createFilePath } = require(`gatsby-source-filesystem`) - exports.createPages = async ({ actions, graphql }) => { const {createPage} = actions;