committed by
GitHub
parent
de040e6727
commit
27659baca6
76
website/gatsby-config.js
Normal file
76
website/gatsby-config.js
Normal file
@ -0,0 +1,76 @@
|
||||
const fs = require('fs');
|
||||
const yaml = require('js-yaml');
|
||||
|
||||
const pkg = require('./package.json');
|
||||
|
||||
const staticConfig = yaml.load(fs.readFileSync('./site.yml', 'utf8'));
|
||||
|
||||
module.exports = {
|
||||
siteMetadata: {
|
||||
title: 'Simple 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: 'SimpleCMS',
|
||||
short_name: 'SimpleCMS',
|
||||
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`,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user