summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js2
-rw-r--r--templates/entry.liquid4
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 %}
</div>
<div class="content">
- {% if entry.body %}
+ {% if entry.shortDescription %}
+ {{ entry.shortDescription }}
+ {% elsif entry.body %}
{{ entry.body | split: '. ' | first }}
<br><br>
{% endif %}