Somethin, idk
This commit is contained in:
parent
da8221bf81
commit
7cbf18ce74
9 changed files with 79 additions and 10 deletions
22
templates/section.html
Normal file
22
templates/section.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue