1
0
Fork 0
forked from github/pelican
pelican-theme/templates/index.html

27 lines
1 KiB
HTML
Raw Normal View History

2024-12-19 09:56:25 +01:00
{% extends "base.html" %}
{% block content %}
{% block content_title %}
<h1 class="text-3xl md:text-5xl">Recent blog posts</h1>
2024-12-19 09:56:25 +01:00
{% 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>
<h2 class="text-3xl mb-3 hyphens-auto"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</h2>
2024-12-19 09:56:25 +01:00
</header>
<section>{{ article.summary }}</section>
</article>
</div>
{% endfor %}
</div>
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
{% endblock content %}