1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

move site config to own file

This commit is contained in:
Matthias Kretschmann 2018-11-10 15:12:41 +01:00
parent 4b1ad4d95e
commit 68881c9c43
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 10 additions and 9 deletions

7
config.js Normal file
View File

@ -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'
}

View File

@ -1,15 +1,9 @@
const config = { const config = require('./config.js')
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'
}
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
siteTitle: config.title, siteTitle: config.siteTitle,
siteDescription: config.description, siteDescription: config.siteDescription,
siteUrl: config.siteUrl siteUrl: config.siteUrl
}, },
plugins: [ plugins: [