Skip to content

Commit 3692cb8

Browse files
authored
Section-index: ensure .Parent isn't nil (#1866)
1 parent 85fbe76 commit 3692cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/section-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ $pages = (where $pages "Type" "!=" "search") }}
55
{{ $pages = (where $pages ".Params.hide_summary" "!=" true) -}}
66
{{ $pages = (where $pages ".Parent" "!=" nil) -}}
7-
{{ if .Parent.File -}}
7+
{{ if and .Parent .Parent.File -}}
88
{{ $pages = (where $pages "Parent.File.UniqueID" "==" $parent.File.UniqueID) -}}
99
{{ end -}}
1010
{{ if or $parent.Params.no_list (eq (len $pages) 0) -}}

0 commit comments

Comments
 (0)