My loop makes a loop too much

I try to show my different events on my home page.
I do that =

{{ $rooms := where .Site.Pages “Type” “rooms” }}
{{ range $rooms }}

{{ end }}

but the loop do 5 loops instead of 4.

Hi there,

It’s difficult to say without seeing your code, but I’m guessing you probably want .Site.RegularPages instead of .Site.Pages. See the docs here:

Also have a look at Requesting Help to see how to make it easier to ask for help in the forums.

Without code you found the solution , very thanks !! and th for the docs