Skip to content

Commit 104778a

Browse files
committed
Fix Paging
1 parent 11735c2 commit 104778a

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

_includes/footer_custom.html

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,34 @@
22
| where_exp: "item", "item.title != nil"
33
| where_exp: "item", "item.nav_exclude != true" -%}
44

5-
{%- assign nav_parenthood = nav_pages | group_by: "parent" -%}
6-
{%- assign nav_top_nodes = nav_parenthood
7-
| where_exp: "item", "item.name == ''" | map: "items" | first -%}
5+
{%- assign nav_top_nodes = nav_pages
6+
| where_exp: "item", "item.parent == nil" -%}
87
{%- include components/nav/sorted.html pages=nav_top_nodes -%}
9-
{%- assign nav_top_node_titles = nav_top_nodes | map: "title" -%}
10-
{%- assign nav_ancestors = "" | split: "" -%}
11-
{%- include components/nav/flattened.html pages=nav_sorted ancestors=nav_ancestors all=false -%}
12-
{%- assign pager_pages = nav_flattened_pages -%}
8+
{%- assign pager_pages = "" | split: "" -%}
9+
10+
{%- for top_node in nav_sorted -%}
11+
{%- assign pager_pages = pager_pages | push: top_node -%}
12+
13+
{%- assign child_pages = nav_pages | where: "parent", top_node.title -%}
14+
{%- include components/nav/sorted.html pages=child_pages -%}
15+
{%- assign child_pages = nav_sorted -%}
16+
{%- if top_node.child_nav_order == 'desc' or top_node.child_nav_order == 'reversed' -%}
17+
{%- assign child_pages = child_pages | reverse -%}
18+
{%- endif -%}
19+
20+
{%- for child_page in child_pages -%}
21+
{%- assign pager_pages = pager_pages | push: child_page -%}
22+
23+
{%- assign grandchild_pages = nav_pages | where: "parent", child_page.title -%}
24+
{%- include components/nav/sorted.html pages=grandchild_pages -%}
25+
{%- assign grandchild_pages = nav_sorted -%}
26+
{%- if child_page.child_nav_order == 'desc' or child_page.child_nav_order == 'reversed' -%}
27+
{%- assign grandchild_pages = grandchild_pages | reverse -%}
28+
{%- endif -%}
29+
30+
{%- assign pager_pages = pager_pages | concat: grandchild_pages -%}
31+
{%- endfor -%}
32+
{%- endfor -%}
1333

1434
{%- assign current_index = -1 -%}
1535
{%- for pager_page in pager_pages -%}

pages/vscode-extension/commands.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ The extension provides commands to control the extension lifecycle, trigger veri
1919
| `Restart` | Stops and then starts the LiquidJava extension |
2020
| `Verify` | Manually triggers the verification |
2121

22-
2322
The extension adds a command that opens a palette listing the available LiquidJava commands. This command is executed when the status bar indicator is clicked, giving users a quick way to access extension actions.
2423

2524
![Commands]({{ 'assets/images/commands.png' | relative_url }})

pages/vscode-extension/status-bar-indicator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ The extension displays an indicator in the status bar in the bottom-left of the
1717
| `failed` | The verification failed with one or more errors |
1818
| `stopped` | The extension was stopped, failed to connect, or lost connection with the language server |
1919

20-
Clicking on this indicator shows the available LiquidJava commands, which is covered in the next section.
21-
2220
![Status Bar Indicator]({{ 'assets/images/status-bar-indicator.gif' | relative_url }})
21+
22+
Clicking on this indicator shows the available LiquidJava commands, which is covered in the next section.

0 commit comments

Comments
 (0)