1
0
mirror of https://github.com/thangisme/notes.git synced 2024-09-07 09:34:21 -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,10 +62,16 @@
<ul> <ul>
{% for child in children_list %} {% for child in children_list %}
{% if child.parent == page.title and child.title != page.title %} {% if child.parent == page.title and child.title != page.title %}
{% if child.excerpt %}
<li>
<a href="{{ child.url | absolute_url }}">{{ child.title }} - {{ child.excerpt }}</a>
</li>
{% else %}
<li> <li>
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a> <a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
</li> </li>
{% endif %} {% endif %}
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}