jeffs-pelican-theme/templates/include/paginated_posts.html

45 lines
No EOL
1.7 KiB
HTML

<div class="posts">
{% for article in articles_page.object_list %}
<article>
{% if INCLUDE_IMAGE == True %}
{% if article.photo_image %}
<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 INCLUDE_TITLE != False %}
<header>
<h2 id="indexheader"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
</header>
{% endif %}
{% endif %}
{% if (article.category != MICROBLOG)%}
{% if INCLUDE_SUMMARY != False %}
<div class="entry-content"> {{ article.summary }} </div>
{% if INCLUDE_CATEGORY == True %}
{% if article.category %}
<div class="category">
Posted in: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</div>
{% endif %}
{% endif %}
{% endif %}
{% if MOREBUTTON == True %}
<br />
<ul class="actions">
<li><a href="{{ SITEURL }}/{{ article.url }}" class="button">More</a></li>
</ul>
<br />
{% endif %}
<!-- /.entry-content -->
{% endif %}
</article>
{% endfor %}
<!-- /#posts-list -->
</div>
<div>
{% if articles_page.has_other_pages() %}
{% include 'include/pagination.html' %}
{% endif %}
</div>