We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2715edd commit 4b2ce02Copy full SHA for 4b2ce02
_includes/footer_custom.html
@@ -22,6 +22,7 @@
22
{%- if current_index >= 0 -%}
23
{%- assign previous_page = nil -%}
24
{%- assign next_page = nil -%}
25
+ {%- assign current_children = nav_pages | where: "parent", page.title | sort_natural: "title" | sort: "nav_order" -%}
26
27
{%- if current_index > 0 -%}
28
{%- assign previous_index = current_index | minus: 1 -%}
@@ -35,6 +36,10 @@
35
36
{%- assign next_page = pager_pages[next_index] -%}
37
{%- endif -%}
38
39
+ {%- if page.has_children and current_children.size > 0 -%}
40
+ {%- assign next_page = current_children.first -%}
41
+ {%- endif -%}
42
+
43
{%- if previous_page or next_page -%}
44
<nav class="page-nav" aria-label="Page navigation">
45
{%- if previous_page -%}
0 commit comments