pbe/example-site/templates/archive.html
Gered 83d75d4885 represent post dates as a NaiveDateTime, still allowing for date-only
posts can be specified with a date only, or date and time as desired.
it is up to the site's specific template to render posts with an
appropriate date/time format string based on what the author's
preferences
2023-06-28 15:16:29 -04:00

23 lines
505 B
HTML

{% extends "base.html" %}
{% block title %}Posts Archive{% endblock title %}
{% block content %}
<header>
<h1>Posts Archive</h1>
</header>
<table>
{% for post in posts %}
<tr>
<td><time>{{ post.date | date(format="%Y-%b-%d") }}</time></td>
<td>
<a href="{{ post.url }}">{{ post.title }}</a>
<span class="tags">
{%- for tag in post.tags -%}
<span><a href="/tag/{{ tag }}/">{{ tag }}</a></span>
{%- endfor -%}
</span>
</td>
</tr>
{% endfor %}
</table>
{% endblock content %}