summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-08-18 23:39:59 +0200
committerJules Laplace <julescarbon@gmail.com>2017-08-18 23:39:59 +0200
commit1e006b7df774ac9966ba2105e68cebf5e395e98d (patch)
treeb145e5f68ac7ca4ba3f80ee1cb4df7cc9089c21d /index.js
parenta8a5509a02fec7dcc57ec9382c97685cf711360d (diff)
folkestone
Diffstat (limited to 'index.js')
-rw-r--r--index.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/index.js b/index.js
index 52bb612..53e4c4b 100644
--- a/index.js
+++ b/index.js
@@ -3,6 +3,14 @@ var path = require('path')
var isProduction = process.env.OK_PRODUCTION === 'true'
+var viewConfig = {
+ template: 'index',
+ data: [
+ {type: 'entry', query: '*'},
+ {type: 'page', query: '*'},
+ ]
+}
+
var app = okcms.createApp({
project: 'Folkestone Gossip',
@@ -45,8 +53,8 @@ var app = okcms.createApp({
],
views: {
- '/': { template: 'index' },
- '/entry/:id': { template: 'index' },
+ '/': viewConfig,
+ '/entry/:id': viewConfig,
},
services: {