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

1 commit

Author SHA1 Message Date
96cdef6403 Add grouping of related pages to contributor layout
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.
2025-11-20 13:49:23 +01:00