1
0
Fork 0
blog/gatsby-config.js

57 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-07-11 17:56:13 +02:00
const path = require('path')
const fs = require('fs')
const yaml = require('js-yaml')
const meta = yaml.load(fs.readFileSync('./content/meta.yml', 'utf8'))
const { url } = meta
module.exports = {
siteMetadata: {
siteUrl: `${url}`
},
plugins: [
2018-07-17 23:33:55 +02:00
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'posts',
path: path.join(__dirname, 'content', 'posts')
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'media',
path: path.join(__dirname, 'content', 'media')
}
},
2018-07-11 17:56:13 +02:00
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-images',
options: {
2018-07-17 23:33:55 +02:00
maxWidth: 940,
linkImagesToOriginal: false,
sizeByPixelDensity: true,
showCaptions: true
2018-07-11 17:56:13 +02:00
}
},
2018-07-17 23:33:55 +02:00
'gatsby-remark-smartypants',
'gatsby-remark-autolink-headers'
2018-07-11 17:56:13 +02:00
]
}
},
{
resolve: 'gatsby-plugin-sass',
options: {
includePaths: [`${__dirname}/node_modules`]
}
},
2018-07-17 23:33:55 +02:00
'gatsby-plugin-react-helmet',
'gatsby-transformer-yaml',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
'gatsby-plugin-sitemap'
2018-07-11 17:56:13 +02:00
]
}