File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,21 @@ I.e. left part of this expression (before 'if') is a true-branch of the statemen
68
68
69
69
{% assign children_list = site.pages | sort:"nav_order" %}
70
70
{% for child in children_list %}
71
- {% if child == page.parent %}
71
+ {% if child.title == page.parent.title %}
72
72
{% assign parent_page_info = child %}
73
73
parent.nav_order (0) = {{ child.nav_order }}<br />
74
74
parent.url (0) = {{ child.url }}<br />
75
75
parent.title (0) = {{ child.title }}<br />
76
76
parent.nav_order (1) = {{ parent_page_info.nav_order }}<br />
77
77
parent.url (1) = {{ parent_page_info.url }}<br />
78
78
parent.title (1) = {{ parent_page_info.title }}<br />
79
+ {% else %}
80
+ parent.nav_order (2) = {{ page.parent.nav_order }}<br />
81
+ parent.url (2) = {{ page.parent.url }}<br />
82
+ parent.title (2) = {{ page.parent.title }}<br />
83
+ parent.nav_order (3) = {{ child.parent.nav_order }}<br />
84
+ parent.url (3) = {{ child.parent.url }}<br />
85
+ parent.title (3) = {{ child.parent.title }}<br />
79
86
{% assign parent_page_info = child %}
80
87
{% endif %}
81
88
{% if child.parent == page.parent and child.title == page.title %}
You can’t perform that action at this time.
0 commit comments