Add grouping of related pages to contributor layout #11

Merged
mih merged 1 commit from msz/www.trr379.de:contrib-related-group-paginate into main 2025-11-20 15:59:44 +00:00
Contributor

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 .Paginate and 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

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 `.Paginate` and 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
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 `.Paginate` and
  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.
mih approved these changes 2025-11-20 15:59:30 +00:00
mih left a comment

Makes sense to me. Let's see it in action on the www-draft deployment. Thanks!

Makes sense to me. Let's see it in action on the www-draft deployment. Thanks!
mih merged commit c5feb15a72 into main 2025-11-20 15:59:44 +00:00
mih deleted branch contrib-related-group-paginate 2025-11-20 15:59:45 +00:00
Sign in to join this conversation.
No reviewers
mih
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
q04/www.trr379.de!11
No description provided.