forked from github/pelican
feat: this is going live now
This commit is contained in:
parent
eeaffe79e1
commit
06cac4589c
410 changed files with 4684 additions and 44715 deletions
27
templates/index.html
Normal file
27
templates/index.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
{% block content_title %}
|
||||
<h1 class="text-5xl">Recent blog posts</h1>
|
||||
{% 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>
|
||||
</header>
|
||||
<section>{{ article.summary }}</section>
|
||||
</article>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% if articles_page.has_other_pages() %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue