forked from github/pelican
27 lines
1 KiB
HTML
27 lines
1 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
{% block content_title %}
|
|
<h2>Recent blog posts</h2>
|
|
{% endblock %}
|
|
<!--This needs to align to the PAGINATION value in pelicanconf.py-->
|
|
<div class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-8">
|
|
{% for article in articles_page.object_list %}
|
|
<div>
|
|
<article>
|
|
<footer>
|
|
<time datetime="{{ article.date.isoformat() }}" class="italic">{{ article.locale_date }}</time>
|
|
</footer>
|
|
<header>
|
|
<h3 class="text-3xl mb-3 hyphens-auto"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
|
</h3>
|
|
</header>
|
|
<section>{{ article.summary }}</section>
|
|
</article>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% if articles_page.has_other_pages() %}
|
|
{% include 'pagination.html' %}
|
|
{% endif %}
|
|
{% endblock content %}
|