From a29a021dee9bee8b916df8b512c38f2adc2a445e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 31 Dec 2016 22:07:40 +0100 Subject: disabled --- studio-susie/index.js | 6 ++++-- studio-susie/templates/index.liquid | 12 +++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/studio-susie/index.js b/studio-susie/index.js index 9ff7a74..906299a 100644 --- a/studio-susie/index.js +++ b/studio-susie/index.js @@ -33,13 +33,15 @@ var app = okcms.createApp({ title: {type: 'string'}, center: {type: 'flag'}, image: {type: 'image'}, - date: {type: 'string'}, - description: {type: 'string'}, + date: {type: 'number'}, + medium: {type: 'string'}, + disabled: {type: 'flag'}, }, page: { id: {type: 'string', hidden: true}, title: {type: 'string'}, body: {type: 'text'}, + disabled: {type: 'flag'}, }, }, diff --git a/studio-susie/templates/index.liquid b/studio-susie/templates/index.liquid index 63bb53f..032a67f 100644 --- a/studio-susie/templates/index.liquid +++ b/studio-susie/templates/index.liquid @@ -105,13 +105,15 @@
{% for painting in paintings %} + {% if ! painting.disabled %}
{% unless painting.title contains "IMG" %}
- {{painting.title}}{% if painting.date %}, {{painting.date}}.{% endif %} {{painting.description}} + {{painting.title}}{% if painting.date %}, {{painting.date}}.{% endif %} {{painting.medium}}
{% endunless %}
+ {% endif %} {% endfor %}
@@ -123,11 +125,13 @@ {% for page in pages %} + {% if ! page.disabled %}
{{ page.body }}
+ {% endif %} {% endfor %} @@ -138,9 +142,11 @@
{% for page in pages %} - {{page.title}} + {% if ! page.disabled %} + {{page.title}} + {% endif %} {% endfor %} - See All + See All
-- cgit v1.2.3-70-g09d2