Skip to content

Commit 6a97d65

Browse files
authored
Merge pull request #21663 from dvdksn/fix-sidebar-reverse
hugo: fix 'reverse' option for re-ordering sidebar entries
2 parents 26c703d + e7246a2 commit 6a97d65

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

hugo_stats.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"Docker-Desktop",
4343
"Docker-Hub",
4444
"Docker-Scout-Dashboard",
45+
"Docker-plan",
4546
"Download",
4647
"Entra-ID",
4748
"Entra-ID-SAML-2.0",
@@ -68,6 +69,8 @@
6869
"JavaScript",
6970
"Jenkins",
7071
"Latest",
72+
"Legacy-Docker-plan",
73+
"Legacy-Docker-plans",
7174
"Linux",
7275
"Local-or-Hub-storage",
7376
"MDM",
@@ -138,7 +141,6 @@
138141
"aspect-video",
139142
"bake-action",
140143
"bg-amber-light",
141-
"bg-amber-light-200",
142144
"bg-background-light",
143145
"bg-black/50",
144146
"bg-black/70",
@@ -191,7 +193,6 @@
191193
"containerd-image-store",
192194
"cursor-pointer",
193195
"dark:bg-amber-dark",
194-
"dark:bg-amber-dark-200",
195196
"dark:bg-background-dark",
196197
"dark:bg-blue-dark",
197198
"dark:bg-blue-dark-400",
@@ -261,6 +262,7 @@
261262
"flex-col",
262263
"flex-col-reverse",
263264
"flex-grow",
265+
"flex-grow-0",
264266
"flex-none",
265267
"flex-shrink",
266268
"flex-wrap",
@@ -342,6 +344,7 @@
342344
"lg:gap-8",
343345
"lg:grid-cols-2",
344346
"lg:grid-cols-3",
347+
"lg:grid-cols-4",
345348
"lg:hidden",
346349
"lg:no-underline",
347350
"lg:pb-2",

layouts/partials/sidebar/sections.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
</nav>
99

1010
{{ define "renderChildren" }}
11-
{{- $pages := .Pages }}
11+
{{- $pages := where .Pages "Params.sitemap" "ne" "false" }}
1212
{{- if .Params.sidebar.reverse }}
1313
{{ $pages = .Pages.Reverse }}
1414
{{- end }}
15-
{{- $pages = where .Pages "Params.sitemap" "ne" "false" }}
1615
{{- $ungrouped := where $pages "Params.sidebar.group" "==" nil }}
1716
{{- range $ungrouped }}
1817
{{- if .IsSection }}

0 commit comments

Comments
 (0)