Insert a <p> tag to ease customizing article summary paddings.
This commit is contained in:
parent
8711aa36d0
commit
f951d4ba7d
@ -404,3 +404,7 @@ img::-moz-selection {
|
|||||||
body {
|
body {
|
||||||
webkit-tap-highlight-color: #0085a1;
|
webkit-tap-highlight-color: #0085a1;
|
||||||
}
|
}
|
||||||
|
.article-summary {
|
||||||
|
padding-top:10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
@ -49,10 +49,14 @@
|
|||||||
</a>
|
</a>
|
||||||
{% if SHOW_FULL_ARTICLE %}
|
{% if SHOW_FULL_ARTICLE %}
|
||||||
{{ article.content }}
|
{{ article.content }}
|
||||||
{% elif article.has_summary %}
|
{% else %}
|
||||||
{{ article.summary }}
|
<p class="article-summary">
|
||||||
{% elif article.summary %}
|
{% if article.has_summary %}
|
||||||
{{ article.summary|striptags|truncate(140) }}
|
{{ article.summary }}
|
||||||
|
{% elif article.summary %}
|
||||||
|
{{ article.summary|striptags|truncate(140) }}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
{% 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