If child pages > 1

Hi there
im working on a layout where a section can have 1 or several children.
if multiple children they are displayed as buttons one below the other.
however, if there is only one child, it should be full width.

im cracking my brains on this one, any idea if hugo has a if range .Pages > 1 or something like that?


Written from mobile, so untested. But give this a try

{{ $pages := where site.RegularPages "Section" "==" "foo" }}
{{ $count := len $pages }}
{{ if gt $count 1 }}