mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-16 08:02:24 -06:00
Merge pull request #1 from stefanoborini/adding-summary-for-toc
Adding summary for toc
This commit is contained in:
commit
26766a5984
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user