2018-05-04 01:58:43 +02:00
|
|
|
const path = require('path')
|
2018-05-07 15:39:42 +02:00
|
|
|
const fs = require('fs')
|
2018-05-05 00:17:26 +02:00
|
|
|
const yaml = require('js-yaml')
|
2019-03-30 00:24:57 +01:00
|
|
|
const meta = yaml.load(fs.readFileSync('./content/meta.yml', 'utf8'))
|
2019-11-19 22:49:17 +01:00
|
|
|
const resume = require('./content/resume.json')
|
|
|
|
const { matomoSite, matomoUrl } = meta[0]
|
|
|
|
const { name, website } = resume.basics
|
2018-04-08 00:19:54 +02:00
|
|
|
|
2019-11-16 14:55:30 +01:00
|
|
|
require('dotenv').config()
|
2019-11-16 13:37:25 +01:00
|
|
|
|
2018-04-06 17:24:35 +02:00
|
|
|
module.exports = {
|
|
|
|
siteMetadata: {
|
2019-11-19 22:49:17 +01:00
|
|
|
siteUrl: `${website}`
|
2018-04-06 17:24:35 +02:00
|
|
|
},
|
|
|
|
plugins: [
|
2019-08-11 21:47:22 +02:00
|
|
|
'gatsby-transformer-yaml',
|
|
|
|
'gatsby-transformer-json',
|
2018-07-15 00:13:35 +02:00
|
|
|
{
|
2019-08-11 21:47:22 +02:00
|
|
|
resolve: 'gatsby-source-filesystem',
|
2018-07-15 00:13:35 +02:00
|
|
|
options: {
|
2019-08-11 21:47:22 +02:00
|
|
|
name: 'content',
|
|
|
|
path: path.join(__dirname, 'content')
|
2018-07-15 00:13:35 +02:00
|
|
|
}
|
|
|
|
},
|
2018-05-14 20:10:59 +02:00
|
|
|
{
|
2019-08-11 21:47:22 +02:00
|
|
|
resolve: 'gatsby-source-filesystem',
|
2018-05-14 20:10:59 +02:00
|
|
|
options: {
|
2019-08-11 21:47:22 +02:00
|
|
|
name: 'pkg',
|
|
|
|
path: path.join(__dirname, 'package.json')
|
2018-05-22 22:51:41 +02:00
|
|
|
}
|
2018-05-14 20:10:59 +02:00
|
|
|
},
|
2018-04-07 14:18:06 +02:00
|
|
|
{
|
2019-08-11 21:47:22 +02:00
|
|
|
resolve: 'gatsby-source-filesystem',
|
2018-04-07 14:18:06 +02:00
|
|
|
options: {
|
2019-08-11 21:47:22 +02:00
|
|
|
name: 'images',
|
|
|
|
path: path.join(__dirname, 'src', 'images')
|
2018-05-22 22:51:41 +02:00
|
|
|
}
|
2018-04-07 14:18:06 +02:00
|
|
|
},
|
2018-04-22 23:51:50 +02:00
|
|
|
{
|
2019-08-11 21:47:22 +02:00
|
|
|
resolve: 'gatsby-plugin-sass',
|
2018-04-22 23:51:50 +02:00
|
|
|
options: {
|
2019-08-11 21:47:22 +02:00
|
|
|
includePaths: [`${__dirname}/node_modules`, `${__dirname}/src/styles`]
|
2018-05-22 22:51:41 +02:00
|
|
|
}
|
2018-04-22 23:51:50 +02:00
|
|
|
},
|
2018-09-20 19:06:46 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-svgr',
|
|
|
|
options: {
|
|
|
|
icon: true
|
|
|
|
}
|
|
|
|
},
|
2018-05-07 19:31:10 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-matomo',
|
|
|
|
options: {
|
|
|
|
siteId: `${matomoSite}`,
|
2019-11-19 22:49:17 +01:00
|
|
|
siteUrl: `${website}`,
|
2018-05-07 19:31:10 +02:00
|
|
|
matomoUrl: `${matomoUrl}`,
|
2018-05-22 22:51:41 +02:00
|
|
|
localScript: '/piwik.js'
|
|
|
|
}
|
2018-05-07 19:31:10 +02:00
|
|
|
},
|
2018-05-07 01:43:33 +02:00
|
|
|
{
|
2019-06-10 19:21:51 +02:00
|
|
|
resolve: 'gatsby-plugin-manifest',
|
2018-05-07 01:43:33 +02:00
|
|
|
options: {
|
2019-11-19 22:49:17 +01:00
|
|
|
name: name.toLowerCase(),
|
2019-06-10 19:21:51 +02:00
|
|
|
short_name: 'mk',
|
|
|
|
start_url: '/',
|
|
|
|
background_color: '#e7eef4',
|
2019-11-09 19:12:58 +01:00
|
|
|
theme_color: '#e7eef4',
|
2019-06-10 19:21:51 +02:00
|
|
|
icon: 'src/images/favicon.png',
|
2019-11-09 19:12:58 +01:00
|
|
|
display: 'standalone',
|
|
|
|
cache_busting_mode: 'name',
|
|
|
|
theme_color_in_head: false // dynamically set in ThemeSwitch
|
2018-05-22 22:51:41 +02:00
|
|
|
}
|
2018-07-15 00:13:35 +02:00
|
|
|
},
|
|
|
|
'gatsby-plugin-react-helmet',
|
|
|
|
'gatsby-transformer-sharp',
|
|
|
|
'gatsby-plugin-sharp',
|
2018-08-06 14:51:53 +02:00
|
|
|
'gatsby-plugin-sitemap',
|
2019-10-23 13:20:31 +02:00
|
|
|
'gatsby-plugin-offline',
|
|
|
|
'gatsby-plugin-webpack-size'
|
2019-11-25 13:46:44 +01:00
|
|
|
// 'gatsby-plugin-webpack-bundle-analyser-v2'
|
2018-05-22 22:51:41 +02:00
|
|
|
]
|
2018-04-06 17:24:35 +02:00
|
|
|
}
|