├── content
│ ├── _index.md
│ └── posts
│ ├── _index.md
│ ├── foo.md
│ ├── bar.md
│ ├── subfolder
│ │ ├── _index.md
│ │ ├── subfoo.md
│ │ ├── subbar.md
Is it possible to not paginate posts that are in the subfolder? I.e. I want to be able to see foo
and bar
, but not subfoo
nor subbar
nor subfolder
as a post.
Here is part of my template:
{{ $pages := where site.RegularPages "Section" "posts" }}
{{ $paginator := .Paginate $pages.ByDate.Reverse }}