[gimp-web/testing] Added auto-summary from news contents



commit d75108e1b101fb2ac7a592309b473f0a524f16bc
Author: Pat David <patdavid gmail com>
Date:   Fri Jan 15 09:57:17 2016 -0600

    Added auto-summary from news contents

 themes/newgimp/templates/index.html |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/themes/newgimp/templates/index.html b/themes/newgimp/templates/index.html
index 544dc87..76f35cc 100644
--- a/themes/newgimp/templates/index.html
+++ b/themes/newgimp/templates/index.html
@@ -156,7 +156,11 @@
                         </div>
 
                         <div class='entry-content'> 
+                            {% if article.summary %}
                             {{ article.summary }} 
+                            {% else %}
+                            {{ article.content|truncate() }}
+                            {% endif %}
                         </div>
 
                         {#


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]