1
0
Fork 0
website/templates/section_index.html

18 lines
628 B
HTML
Raw Normal View History

2023-03-25 16:14:53 +01:00
{% extends "base.html" %}
{% block main -%}
2023-03-25 21:38:16 +01:00
<h1>Posts</h1>
<p>I occasionally write some stuff, it's quite rare but it does happen believe it or not.</p>
2023-03-25 16:14:53 +01:00
<ul>
{% for post in posts -%}
2024-04-21 14:27:29 +02:00
{% if post.title -%}
<li><a href="{{base_url | trim_end_matches(pat='/') | safe}}{{post.absolute_path | safe}}">{% if post.date -%}
2023-07-29 20:22:13 +02:00
<time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time> &ndash; {{ post.title -}}
2023-03-25 21:38:16 +01:00
{% else -%}
{{ post.title -}}
{% endif -%}
</a></li>
2024-04-21 14:27:29 +02:00
{%- endif %}
2023-03-25 16:14:53 +01:00
{% endfor -%}
</ul>
2023-03-29 21:48:27 +02:00
{% endblock main -%}