What this PR does / why we need it:
.Pages previously only returned pages with .Kind eq "page" but now it returns all pages under a section. Changed our list helper to collect pages based on their .Kind if subsections is not set or is set to false.
Which issue this PR fixes:
fixes #751
Release note:
- list: Fix a bug that caused subsections be shown if the config was set to not show them or show duplicate subsections if config was set to show them.
What this PR does / why we need it:
.Pages
previously only returned pages with.Kind eq "page"
but now it returns all pages under a section. Changed our list helper to collect pages based on their.Kind
ifsubsections
is not set or is set to false.Which issue this PR fixes: fixes #751
Release note: