1
0
Fork 0
website/templates/section_index.html

17 lines
628 B
HTML

{% extends "base.html" %}
{% block main -%}
<h1>Posts</h1>
<p>I occasionally write some stuff, it's quite rare but it does happen believe it or not.</p>
<ul>
{% for post in posts -%}
{% if post.title -%}
<li><a href="{{base_url | trim_end_matches(pat='/') | safe}}{{post.absolute_path | safe}}">{% if post.date -%}
<time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time> &ndash; {{ post.title -}}
{% else -%}
{{ post.title -}}
{% endif -%}
</a></li>
{%- endif %}
{% endfor -%}
</ul>
{% endblock main -%}