Skip to content

Commit 56c4252

Browse files
authored
Update main_statements.md
1 parent 7a0d5ce commit 56c4252

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

docs/usage/main_statements.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ std::string prefix = !descr.nsScope.empty() ? descr.nsScope + "::" : "";
6666
```
6767
I.e. left part of this expression (before 'if') is a true-branch of the statement. Right part (after 'else') - false-branch, which can be omitted. As a condition you can use any expression convertible to bool.
6868

69-
{% assign children_list = site.pages | sort:"nav_order" %}
69+
{% assign children_list = site.html_pages | sort:"nav_order" %}
7070
{% for child in children_list %}
7171
{% if child.title == page.parent.title %}
7272
{% assign parent_page_info = child %}
@@ -76,15 +76,13 @@ I.e. left part of this expression (before 'if') is a true-branch of the statemen
7676
parent.nav_order (1) = {{ parent_page_info.nav_order }}<br/>
7777
parent.url (1) = {{ parent_page_info.url }}<br/>
7878
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/>
86-
{% assign parent_page_info = child %}
8779
{% endif %}
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/>
8886
{% if child.parent == page.parent and child.title == page.title %}
8987
child.nav_order = {{ child.nav_order }}<br/>
9088
child.url = {{ child.url }}<br/>

0 commit comments

Comments
 (0)