Skip to content

Commit 80be9a6

Browse files
authored
Update main_statements.md
1 parent 7a7a8b9 commit 80be9a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/usage/main_statements.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ I.e. left part of this expression (before 'if') is a true-branch of the statemen
6868

6969
{% assign children_list = site.pages | sort:"nav_order" %}
7070
{% for child in children_list %}
71-
{% if child = page.parent %}
71+
{% if child == page.parent %}
7272
{% assign parent_page_info = child %}
7373
{% endif %}
7474
{% if child.parent == page.parent and child.title == page.title %}
@@ -81,6 +81,9 @@ I.e. left part of this expression (before 'if') is a true-branch of the statemen
8181
forloop.next = {{ forloop.prev }}</br>
8282
forloop.index = {{ forloop.prev }}</br>
8383
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
84+
{% if not forloop.first %}
85+
prev_url = {{ children_list[forloop.index0 - 1].url }}</br>
86+
{% endif %}
8487
{% endif %}
8588
{% endfor %}
8689
<p><div align="center">&lt; Prev | <a href="{{ page.parent.url }}">Up</a> | <a href="main_statements.html">Next &gt;</a></div></p>

0 commit comments

Comments
 (0)