diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-04-05 18:23:25 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-04-05 18:23:25 -0400 |
| commit | b0e406f3fcbc9c41ef2a0b5b626064b340743e92 (patch) | |
| tree | 6943b9917bc1eb86020a0b5ac2c02000fdbafde8 /index.js | |
| parent | aeca3e15d00b8715e6d07880c2aea7465f6b55f0 (diff) | |
putting intro in db
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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: { |
