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">
|
<div class="posts">
|
||||||
{% for article in articles_page.object_list %}
|
{% for article in articles_page.object_list %}
|
||||||
<article>
|
<article>
|
||||||
|
{% set testing = 1 %}
|
||||||
{% if article.photo_image %}
|
{% 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>
|
<a href="{{ SITEURL }}/{{ article.url }}" class="image"><img src="{{ SITEURL }}/{{ article.photo_image[2] }}" style="max-width: 100%; display: inline; float: center;" /></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if (article.category != MICROBLOG ) %}
|
{% if (article.category != MICROBLOG ) %}
|
||||||
|
@ -11,6 +12,7 @@
|
||||||
</header>
|
</header>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if (article.category != MICROBLOG)%}
|
{% if (article.category != MICROBLOG)%}
|
||||||
|
{% if (testing == 1) %}
|
||||||
<div class="entry-content"> {{ article.summary }} </div>
|
<div class="entry-content"> {{ article.summary }} </div>
|
||||||
{% if INCLUDECATEGORY == True %}
|
{% if INCLUDECATEGORY == True %}
|
||||||
{% if article.category %}
|
{% if article.category %}
|
||||||
|
@ -19,6 +21,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% if MOREBUTTON == True %}
|
{% if MOREBUTTON == True %}
|
||||||
<br />
|
<br />
|
||||||
<ul class="actions">
|
<ul class="actions">
|
||||||
|
|
Loading…
Reference in a new issue