Somethin, idk

This commit is contained in:
Hazel Layne Aranda 2020-12-23 11:55:55 -05:00
parent da8221bf81
commit 7cbf18ce74
9 changed files with 79 additions and 10 deletions

22
templates/section.html Normal file
View file

@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block title %}{{ section.title }} - Hazelnut{% endblock title %}
{% block content %}
{{ section.content | safe }}
<hr>
<ul class="post-list">
{% for page in section.pages %}
<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 %}
</a>
</li>
{% endfor %}
</ul>
{% endblock content %}