From 3f69c056570069e8f26267abbb5e1f459f18a110 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 30 Aug 2017 01:01:48 +0200 Subject: short description --- index.js | 2 +- templates/entry.liquid | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 79c55ab..fa17427 100644 --- a/index.js +++ b/index.js @@ -24,8 +24,8 @@ var app = okcms.createApp({ entry: { id: {type: 'string', hidden: true}, title: {type: 'string'}, - date: {type: 'string'}, tags: {type: 'text'}, + shortDescription: {type: 'text'}, body: {type: 'text'}, media: {type: 'media'}, gallery: {type: 'flag'}, diff --git a/templates/entry.liquid b/templates/entry.liquid index 0439ae0..ce6a040 100644 --- a/templates/entry.liquid +++ b/templates/entry.liquid @@ -87,7 +87,9 @@ SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS {% endfor %}
- {% if entry.body %} + {% if entry.shortDescription %} + {{ entry.shortDescription }} + {% elsif entry.body %} {{ entry.body | split: '. ' | first }}

{% endif %} -- cgit v1.2.3-70-g09d2