2019-04-23 17:38:31 +00:00
|
|
|
{% block content %}
|
2022-07-05 12:10:42 +00:00
|
|
|
<h1 class="section-heading" style="font-variant: small-caps">{{ gettext('Last Articles') }}</h1>
|
2019-04-23 08:44:50 +00:00
|
|
|
{% for article in articles %}
|
2019-04-23 08:45:24 +00:00
|
|
|
{% if loop.index > PAGE_PAGINATION %}{% break %}{% endif %}
|
2019-04-23 08:44:50 +00:00
|
|
|
<div class="post-preview">
|
2019-04-23 17:38:31 +00:00
|
|
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="{{ gettext('Permalink to') }} {{ article.title|striptags }}">
|
2019-04-23 08:44:50 +00:00
|
|
|
<h2 class="post-title">
|
|
|
|
{{ article.title }}
|
|
|
|
</h2>
|
|
|
|
</a>
|
|
|
|
{% if SHOW_FULL_ARTICLE %}
|
|
|
|
{{ article.content }}
|
|
|
|
{% else %}
|
|
|
|
<p class="article-summary">
|
|
|
|
{% if article.has_summary %}
|
|
|
|
{{ article.summary }}
|
|
|
|
{% elif article.summary %}
|
|
|
|
{{ article.summary|striptags|truncate(140) }}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2019-04-23 17:38:31 +00:00
|
|
|
<p class="post-meta">{{ gettext('Posted by') }}
|
2019-04-23 08:44:50 +00:00
|
|
|
{% for author in article.authors %}
|
|
|
|
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
|
|
|
{% endfor %}
|
2019-04-23 17:38:31 +00:00
|
|
|
{{ gettext('on') }} {{ article.locale_date }}<br/>
|
|
|
|
{{ gettext('Category:') }} <a href="{{ SITEURL }}/{{ article.category.url}}">{{ article.category }}</a>
|
2019-04-23 08:44:50 +00:00
|
|
|
</p>
|
|
|
|
{% include 'comments.html' %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2019-04-23 17:38:31 +00:00
|
|
|
{% endblock content %}
|