summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-04-05 18:23:25 -0400
committerJules Laplace <jules@okfoc.us>2016-04-05 18:23:25 -0400
commitb0e406f3fcbc9c41ef2a0b5b626064b340743e92 (patch)
tree6943b9917bc1eb86020a0b5ac2c02000fdbafde8 /index.js
parentaeca3e15d00b8715e6d07880c2aea7465f6b55f0 (diff)
putting intro in db
Diffstat (limited to 'index.js')
-rw-r--r--index.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/index.js b/index.js
index d1defae..746f42d 100644
--- a/index.js
+++ b/index.js
@@ -6,7 +6,7 @@ var viewConfig = {
template: 'index',
data: [
{type: 'project', query: '*'},
- {type: 'page', query: '*'},
+ {type: 'intro', query: 'introduction'},
]
}
@@ -14,14 +14,18 @@ var app = okcms.createApp({
project: 'OKFocus Portfolio',
- debug: true, // !isProduction,
- production: false, // isProduction,
+ debug: !isProduction,
+ production: isProduction,
schemas: {
- page: {
+ intro: {
id: {type: 'string', hidden: true},
title: {type: 'string'},
- body: {type: 'string'},
+ body: {type: 'text'},
+ accolades: {type: 'link-list'},
+ press: {type: 'link-list'},
+ speakers: {type: 'text'},
+ clients: {type: 'text'},
},
project: {
id: {type: 'string', hidden: true},
@@ -43,7 +47,7 @@ var app = okcms.createApp({
resources: [
{ type: 'project' },
- { type: 'page' },
+ { type: 'intro' },
],
views: {