37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
{% block content_title %}
|
|
<h2>All articles</h2>
|
|
{% endblock %}
|
|
|
|
|
|
{% for article in articles_page.object_list %}
|
|
<article>
|
|
<header> <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
|
|
<section>
|
|
{% if INCLUDE_IMAGE == True %}
|
|
{% if article.photo_image %}
|
|
<a href="{{ SITEURL }}/{{ article.url }}" class="image">
|
|
<img src="{{ SITEURL }}/{{ article.photo_image[2] }}" />
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
{{ article.summary }}
|
|
</section>
|
|
<!-- <footer>
|
|
<p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time>
|
|
<address>By
|
|
{% for author in article.authors %}
|
|
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
|
{% endfor %}
|
|
</address></p>
|
|
</footer>
|
|
-->
|
|
</article>
|
|
{% endfor %}
|
|
|
|
{% if articles_page.has_other_pages() %}
|
|
{% include 'pagination.html' %}
|
|
{% endif %}
|
|
|
|
{% endblock content %}
|