Truncate summary and define headline in articles
This commit is contained in:
parent
29438efec0
commit
7f50fccad1
@ -29,7 +29,11 @@
|
|||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
<div class="post-heading">
|
<div class="post-heading">
|
||||||
<h1>{{ article.title }}</h1>
|
<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
|
<span class="meta">Posted by
|
||||||
{% for author in article.authors %}
|
{% for author in article.authors %}
|
||||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</a>
|
</a>
|
||||||
{% if article.summary %}
|
{% if article.summary %}
|
||||||
{{ article.summary|truncate(25) }}
|
{{ article.summary|truncate(140) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="post-meta">Posted by
|
<p class="post-meta">Posted by
|
||||||
{% for author in article.authors %}
|
{% for author in article.authors %}
|
||||||
|
Loading…
Reference in New Issue
Block a user