diff options
| -rw-r--r-- | index.js | 2 | ||||
| -rw-r--r-- | templates/entry.liquid | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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 %} </div> <div class="content"> - {% if entry.body %} + {% if entry.shortDescription %} + {{ entry.shortDescription }} + {% elsif entry.body %} {{ entry.body | split: '. ' | first }} <br><br> {% endif %} |
