Merge pull request #1 from stefanoborini/adding-summary-for-toc

Adding summary for toc
This commit is contained in:
Stefano Borini 2019-03-09 17:27:26 +00:00 committed by GitHub
commit 26766a5984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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