Minor edits to remove summary for posts with image

This commit is contained in:
Jeff MacKinnon 2022-11-13 17:03:14 -04:00
parent 5f383add88
commit 88ddb3566b

View file

@ -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 ) %}
@ -10,7 +11,8 @@
<h2 id="indexheader"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> <h2 id="indexheader"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
</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">