Add grouping of related pages to contributor layout #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "msz/www.trr379.de:contrib-related-group-paginate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This copies the theme-defined approach for grouping by year (which is present in the template as conditional, although it could probably be removed) and applies it to grouping by page type (ie. projects, publications, sites). A similar approach, albeit without pagination, has been applied to our custom term layout in
2578d55.Default sorting order for page groups is alphabetical: projects - publications - sites.
Default pagination size is likely 10. To see pagination in action, reduce pagination size by setting an argument to
.Paginateand look at a Contributor with the most linked pages.Pagination applies to the whole list of items, and IMO behaves sensibly: if a break happens within a group, Hugo repeats its header in the next page.
Given the increasing number of contributor-related contents being added to the website (e.g., soon there will be publications) both grouping and pagination seem to be useful additions.
This would close #10
Makes sense to me. Let's see it in action on the www-draft deployment. Thanks!