Error when multiple where condition for paginate

In the home page, I want to run a pagination list of all posts with 2 conditions:

  • Not in snippets section.

  • Not has name or in parent categories begin with character - (eg: -hello.md or /-testing/hello.md).

Here is my where condition:

{ $paginator := .Paginate (where (where .Site.RegularPages "Section" "not in" (slice "snippets")).ByDate.Reverse "File.Path" "not in" "\\-") 5 }}

But only one condition with not in snippets section is worked. Anything wrong here? Thanks

my suggestions

or use and

something like this (I hope), must figure it out
{ $paginator := .Paginate (where and ( .Site.RegularPages “Section” “not in” (slice “snippets”)).ByDate.Reverse)( “File.Path” “not in” “\-”) 5) }}