Skip to content

Commit

Permalink
Workaround for a bug (google#1863) that will hopefully get a better f…
Browse files Browse the repository at this point in the history
…ix than this
  • Loading branch information
rbfmarshallc committed Feb 15, 2024
1 parent 47c9d95 commit 45c4a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/section-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{{ $pages = (where $pages "Type" "!=" "search") }}
{{ $pages = (where $pages ".Params.hide_summary" "!=" true) -}}
{{ $pages = (where $pages ".Parent" "!=" nil) -}}
{{ if .Parent.File -}}
{{/* {{ if .Parent.File -}} */}}
{{ $pages = (where $pages "Parent.File.UniqueID" "==" $parent.File.UniqueID) -}}
{{ end -}}
{{/* {{ end -}} */}}
{{ if or $parent.Params.no_list (eq (len $pages) 0) -}}
{{/* If no_list is true or we don't have subpages we don't show a list of subpages */}}
{{ else if $parent.Params.simple_list -}}
Expand Down

0 comments on commit 45c4a58

Please sign in to comment.