76 lines
1.8 KiB
JavaScript
76 lines
1.8 KiB
JavaScript
const pkg = require('./package.json');
|
|
const fs = require('fs');
|
|
const yaml = require('js-yaml');
|
|
|
|
const staticConfig = yaml.load(fs.readFileSync('./site.yml', 'utf8'));
|
|
|
|
module.exports = {
|
|
siteMetadata: {
|
|
title: 'Netlify CMS | Open-Source Content Management System',
|
|
description: 'Open source content management for your Git workflow',
|
|
siteUrl: pkg.homepage,
|
|
menu: staticConfig.menu,
|
|
},
|
|
plugins: [
|
|
{
|
|
resolve: 'gatsby-plugin-manifest',
|
|
options: {
|
|
name: 'NetlifyCMS',
|
|
short_name: 'NetlifyCMS',
|
|
start_url: '/',
|
|
background_color: '#ffffff',
|
|
theme_color: '#ffffff',
|
|
display: 'standalone',
|
|
icon: 'static/img/favicon/icon-512x512.png',
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-source-filesystem',
|
|
options: {
|
|
path: `${__dirname}/content`,
|
|
name: 'content',
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-source-filesystem',
|
|
options: {
|
|
path: `${__dirname}/data`,
|
|
name: 'data',
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-transformer-remark',
|
|
options: {
|
|
// prettier-ignore
|
|
plugins: [
|
|
'gatsby-remark-autolink-headers',
|
|
{
|
|
resolve: "gatsby-remark-external-links",
|
|
options: {
|
|
target: "_blank",
|
|
rel: "noopener noreferrer"
|
|
}
|
|
},
|
|
{
|
|
resolve: 'gatsby-remark-prismjs',
|
|
options: {
|
|
noInlineHighlight: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
'gatsby-transformer-yaml',
|
|
'gatsby-transformer-json',
|
|
'gatsby-plugin-emotion',
|
|
'gatsby-plugin-react-helmet',
|
|
'gatsby-plugin-catch-links',
|
|
{
|
|
resolve: 'gatsby-plugin-netlify-cms',
|
|
options: {
|
|
modulePath: `${__dirname}/src/cms/cms.js`,
|
|
},
|
|
},
|
|
],
|
|
};
|