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 (
- +