Make pagination sections configurable
As mentioned [in the `where` docs from `hugo`](https://gohugo.io/functions/where/#mainsections) with regards to `mainSections`.
| | |
| | | {{ define "main" }} |
| | | {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }} |
| | | {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} |
| | | {{ range $paginator.Pages }} |
| | | <div class="post animated fadeInDown"> |
| | | <div class="post-title"> |
| | |
| | | <div class="pagination"> |
| | | {{ template "_internal/pagination.html" . }} |
| | | </div> |
| | | {{ end }} |
| | | {{ end }} |