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: [