pelican-clean-blog/templates/last_articles.html
2019-04-23 14:55:12 +05:30

31 lines
1.2 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 }}<br/>
Category: <a href="{{ SITEURL }}/{{ article.category.url}}">{{ article.category }}</a>
</p>
{% include 'comments.html' %}
</div>
{% endfor %}