From 2f75b40fa5d2aa7bf2abffc8a837f98a21eb6a01 Mon Sep 17 00:00:00 2001 From: Jinksi Date: Sat, 14 Oct 2017 16:16:04 +1000 Subject: [PATCH] Add Global Settings json --- content/settings/global.json | 3 +++ src/App.js | 7 +++---- src/components/NetlifyForm.js | 5 ++--- src/views/Contact.js | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 content/settings/global.json diff --git a/content/settings/global.json b/content/settings/global.json new file mode 100644 index 0000000..2e2d5fc --- /dev/null +++ b/content/settings/global.json @@ -0,0 +1,3 @@ +{ + "siteTitle": "HyperStatic" +} diff --git a/src/App.js b/src/App.js index 95e9289..a455494 100644 --- a/src/App.js +++ b/src/App.js @@ -13,8 +13,6 @@ import ServiceWorkerNotifications from './components/ServiceWorkerNotifications' import globalStyles from './globalStyles' import data from './data.json' -export const siteTitle = 'HyperStatic' - class App extends Component { state = { data @@ -31,13 +29,14 @@ class App extends Component { getDocuments = (collection) => this.state.data[collection] render () { + const site = this.getDocument('settings', 'global') return (
- +