summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
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: {