1
0
mirror of https://github.com/thangisme/notes.git synced 2024-07-09 18:54:13 -04:00

Adds the possibility to specify a brief summary of a child page

This commit is contained in:
Stefano Borini 2019-03-09 17:18:28 +00:00
parent b44efbf1da
commit c796485d92

View File

@ -62,9 +62,15 @@
<ul>
{% for child in children_list %}
{% if child.parent == page.title and child.title != page.title %}
<li>
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
</li>
{% if child.excerpt %}
<li>
<a href="{{ child.url | absolute_url }}">{{ child.title }} - {{ child.excerpt }}</a>
</li>
{% else %}
<li>
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>