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