site/gatsby-config.js

65 lines
1.5 KiB
JavaScript

module.exports = {
siteMetadata: {
title: `MIPT-NPM laboratory`,
description: `Nuclear Physics Methods Laboratory`,
},
plugins: [
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
'gatsby-remark-katex',
'gatsby-remark-relative-images',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 100
}
},
],
},
},
`gatsby-plugin-catch-links`,
`gatsby-plugin-react-helmet`,
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/images`,
name: 'images',
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/src/content`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `NPM group`,
short_name: `npm`,
lang: `ru`,
start_url: `/`,
// start_url: `/new`,
display: `minimal-ui`,
icon: `src/images/icon.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-netlify-cms`,
{
resolve: `gatsby-plugin-intl`,
options: {
path: `${__dirname}/src/intl`,
languages: [`ru`, `en`],
defaultLanguage: `ru`,
redirect: true,
redirectComponent: require.resolve(`./src/components/redirect.js`),
},
},
],
}