Truncate summary and define headline in articles

This commit is contained in:
gilsondev 2014-12-10 16:01:30 -02:00
parent 7f50fccad1
commit 439106d345

View File

@ -31,8 +31,6 @@
<h1>{{ article.title }}</h1> <h1>{{ article.title }}</h1>
{% if article.headline %} {% if article.headline %}
<h3 class="subheading">{{ article.headline }}</h3> <h3 class="subheading">{{ article.headline }}</h3>
{% else %}
<h3 class="subheading">{{ article.summary|truncate(140) }}</h3>
{% endif %} {% endif %}
<span class="meta">Posted by <span class="meta">Posted by
{% for author in article.authors %} {% for author in article.authors %}