zola-inky-fork/templates/posts.html

30 lines
912 B
HTML
Raw Permalink Normal View History

2023-02-01 18:29:21 +00:00
{% extends "base.html" %} {% block content %}
<h1 class="title">{{ section.title }}</h1>
<article>{{ section.content | safe }}</article>
{% for year, posts in section.pages | group_by(attribute="year") %}
<ul class="posts flat">
<h2 class="archive-year">{{ year }}</h2>
{% for post in posts %}
<li class="post">
<div class="post-header">
<div class="meta">
<div class="date">
<span class="day">{{ post.day }}</span>
<span class="rest">{{ post.date | date(format='%b') }}</span>
</div>
</div>
<div class="matter">
2023-02-12 19:09:36 +00:00
<div class="title small">
2023-02-01 18:29:21 +00:00
<a href="{{ post.permalink | safe }}">{{ post.title }}</a>
{% if post.draft %}<span class="draft">(Draft)</span>{% endif %}
2023-02-12 19:09:36 +00:00
</div>
{{ hooks::posts_below_title(page=post) }}
2023-02-01 18:29:21 +00:00
</div>
</div>
</li>
{% endfor %}
</ul>
{% endfor %} {% endblock content %}