Insert a <p> tag to ease customizing article summary paddings.

This commit is contained in:
Vinicius Senna 2016-07-17 13:12:56 -03:00
parent 8711aa36d0
commit f951d4ba7d
2 changed files with 12 additions and 4 deletions

View File

@ -404,3 +404,7 @@ img::-moz-selection {
body {
webkit-tap-highlight-color: #0085a1;
}
.article-summary {
padding-top:10px;
padding-bottom: 10px;
}

View File

@ -49,11 +49,15 @@
</a>
{% if SHOW_FULL_ARTICLE %}
{{ article.content }}
{% elif article.has_summary %}
{% else %}
<p class="article-summary">
{% if article.has_summary %}
{{ article.summary }}
{% elif article.summary %}
{{ article.summary|striptags|truncate(140) }}
{% endif %}
</p>
{% endif %}
<p class="post-meta">Posted by
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>