From 68881c9c433d72a4f7a0e7dd90f045d834c26dc2 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 10 Nov 2018 15:12:41 +0100 Subject: [PATCH] move site config to own file --- config.js | 7 +++++++ gatsby-config.js | 12 +++--------- 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 config.js diff --git a/config.js b/config.js new file mode 100644 index 00000000..630f7d21 --- /dev/null +++ b/config.js @@ -0,0 +1,7 @@ +module.exports = { + siteTitle: 'Ocean Protocol Documentation', + siteDescription: + 'Learn everything you need to know to develop with Ocean Protocol. This should be a bit longer cause it is also the meta description so why not write some more.', + siteUrl: process.env.SITE_URL || 'https://docs.oceanprotocol.com', + analyticsId: 'UA-60614729-11' +} diff --git a/gatsby-config.js b/gatsby-config.js index 79f78855..0d7fdb6f 100755 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,15 +1,9 @@ -const config = { - title: 'Ocean Protocol Documentation', - description: - 'Learn everything you need to know to develop with Ocean Protocol. This should be a bit longer cause it is also the meta description so why not write some more.', - siteUrl: process.env.SITE_URL || 'https://docs.oceanprotocol.com', - analyticsId: 'UA-60614729-11' -} +const config = require('./config.js') module.exports = { siteMetadata: { - siteTitle: config.title, - siteDescription: config.description, + siteTitle: config.siteTitle, + siteDescription: config.siteDescription, siteUrl: config.siteUrl }, plugins: [