Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .Page.Group function to create a PageGroup object
The implementation use a method as using a plain function (in tpl) leads to circular imports The function would need the PageGroup object, hence the Page object. Both are in hugolib/* that import tpl that would need to import hugolib/Page User can now do {{ $cool := .Page.Group "cool" (where .Site.RegularPages "Params.cool" true) }} {{ $blue := .Page.Group "blue" (where .Site.RegularPages "Params.blue" true) }}
- Loading branch information