Truncate summary and define headline in articles

This commit is contained in:
gilsondev 2014-12-10 16:00:35 -02:00
parent 29438efec0
commit 7f50fccad1
2 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,11 @@
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading">
<h1>{{ article.title }}</h1>
<h2 class="subheading">{{ article.summary }}</h2>
{% if article.headline %}
<h3 class="subheading">{{ article.headline }}</h3>
{% else %}
<h3 class="subheading">{{ article.summary|truncate(140) }}</h3>
{% endif %}
<span class="meta">Posted by
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>

View File

@ -31,7 +31,7 @@
</h2>
</a>
{% if article.summary %}
{{ article.summary|truncate(25) }}
{{ article.summary|truncate(140) }}
{% endif %}
<p class="post-meta">Posted by
{% for author in article.authors %}