diff --git a/templates/article.html b/templates/article.html index b27912a..316d968 100755 --- a/templates/article.html +++ b/templates/article.html @@ -29,7 +29,11 @@

{{ article.title }}

-

{{ article.summary }}

+ {% if article.headline %} +

{{ article.headline }}

+ {% else %} +

{{ article.summary|truncate(140) }}

+ {% endif %} Posted by {% for author in article.authors %} {{ author }} diff --git a/templates/index.html b/templates/index.html index 38cbae5..388840e 100755 --- a/templates/index.html +++ b/templates/index.html @@ -31,7 +31,7 @@ {% if article.summary %} - {{ article.summary|truncate(25) }} + {{ article.summary|truncate(140) }} {% endif %}