Minor edits to remove summary for posts with image
This commit is contained in:
parent
5f383add88
commit
88ddb3566b
1 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
<div class="posts">
|
||||
{% for article in articles_page.object_list %}
|
||||
<article>
|
||||
|
||||
{% set testing = 1 %}
|
||||
{% if article.photo_image %}
|
||||
{% set testing = 0 %}
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" class="image"><img src="{{ SITEURL }}/{{ article.photo_image[2] }}" style="max-width: 100%; display: inline; float: center;" /></a>
|
||||
{% endif %}
|
||||
{% if (article.category != MICROBLOG ) %}
|
||||
|
@ -11,6 +12,7 @@
|
|||
</header>
|
||||
{% endif %}
|
||||
{% if (article.category != MICROBLOG)%}
|
||||
{% if (testing == 1) %}
|
||||
<div class="entry-content"> {{ article.summary }} </div>
|
||||
{% if INCLUDECATEGORY == True %}
|
||||
{% if article.category %}
|
||||
|
@ -19,6 +21,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if MOREBUTTON == True %}
|
||||
<br />
|
||||
<ul class="actions">
|
||||
|
|
Loading…
Reference in a new issue