Skip to content

Commit 479a0c2

Browse files
committed
nav-list-hier.html: Use with instead of if gt (len ...) 0
This changes nothing functionality-wise but allows for simpler syntax. Fixes: 6701eb0 (nav-list-hier.html: Optimize cascaded lists)
1 parent a183c80 commit 479a0c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

layouts/partials/nav-list-hier.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
</a></li>
4949
{{- end }}
5050

51-
{{- if gt (len .this.Pages) 0 }}
51+
{{- with .this.Pages }}
5252
<ul>
53-
{{- range .this.Pages }}
53+
{{- range . }}
5454
{{- partial "nav-list-hier-pages.html" (dict
5555
"currentPage" $.currentPage
5656
"this" .

0 commit comments

Comments
 (0)