Some stuff, idk

This commit is contained in:
Hazel Layne Aranda 2021-02-26 14:02:34 -05:00
parent 79100d3f86
commit 2e08cdb595
Signed by: hazelra
GPG key ID: 09213F100E5E4E67
7 changed files with 69 additions and 22 deletions

View file

@ -3,18 +3,23 @@
{% block title %}{{ section.title }} - Hazelnut{% endblock title %}
{% block content %}
{{ section.content | safe }}
<hr>
<h1> {{ section.title }} </h1>
<ul class="post-list">
{% for page in section.pages %}
{% for page in section.pages | sort(attribute="date") | reverse %}
<li>
<a class="internal" href="{{ page.permalink }}">
{{ page.title }}
{% if page.date %}
<p class="post-date">
{{ page.date | date(format="%Y-%m-%d") }}
</p>
{% endif %}
{% if page.description %}
<p class="post-desc">
{{ page.description }}
</p>
{% endif %}
</a>
</li>
{% endfor %}