pelican-clean-blog/templates/last_articles.html

30 lines
1.1 KiB
HTML

<h1 class="section-heading" style="font-variant: small-caps">Recent Articles</h1>
{% for article in articles %}
{% if loop.index > PAGE_PAGINATION %}{% break %}{% endif %}
<div class="post-preview">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
<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 %}
<p class="post-meta">Posted by
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
on {{ article.locale_date }}
</p>
{% include 'comments.html' %}
</div>
{% endfor %}