hazelnut.dev/templates/section.html

28 lines
804 B
HTML
Raw Normal View History

2020-12-23 16:55:55 +00:00
{% extends "base.html" %}
{% block title %}{{ section.title }} - Hazelnut{% endblock title %}
{% block content %}
2021-02-26 19:02:34 +00:00
<h1> {{ section.title }} </h1>
2020-12-23 16:55:55 +00:00
<ul class="post-list">
2021-02-26 19:02:34 +00:00
{% for page in section.pages | sort(attribute="date") | reverse %}
2020-12-23 16:55:55 +00:00
<li>
<a class="internal" href="{{ page.permalink }}">
2021-03-25 19:32:32 +00:00
{{ page.title }}{% if page.draft %} [DRAFT]{% endif %}
2021-02-26 19:02:34 +00:00
2020-12-23 16:55:55 +00:00
{% if page.date %}
<p class="post-date">
{{ page.date | date(format="%Y-%m-%d") }}
</p>
{% endif %}
2021-02-26 19:02:34 +00:00
{% if page.description %}
<p class="post-desc">
{{ page.description }}
</p>
{% endif %}
2020-12-23 16:55:55 +00:00
</a>
</li>
{% endfor %}
</ul>
{% endblock content %}