mirror of
https://github.com/thangisme/notes.git
synced 2024-11-18 01:15:57 -05:00
Fix duplicate entries in default.html
Removes children from the table of contents that belong to a different page with the same title.
This commit is contained in:
parent
102d74c782
commit
c09f86cd1d
@ -77,7 +77,7 @@ layout: table_wrappers
|
|||||||
{% assign children_list = site.pages | sort:"nav_order" %}
|
{% assign children_list = site.pages | sort:"nav_order" %}
|
||||||
<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 and child.grand_parent == page.parent %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
|
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user