UKHomeOffice / engineering-guidance-and-standards

Engineering Guidance and Standards for the Home Office
https://engineering.homeoffice.gov.uk
MIT License
14 stars 2 forks source link

[FEATURE] Tag pages should use pagination #336

Open keithkennedyHO opened 8 months ago

keithkennedyHO commented 8 months ago

What is the feature or enhancement you are suggesting? Tag pages, that is, pages that list all articles with a particular type should use pagination.

What would be the benefit of doing this? Consistency with other pages such as standards and principles pages, and improved usability.

The ways-of-working tag page contains over 10 pages and will continue to grow.

Contrast to the standards page, which does use pagination (10 article links per page).

Please confirm the below

keithkennedyHO commented 7 months ago

Please see this comment from "Core pagination support for double layered pagination #461" https://github.com/11ty/eleventy/issues/461#issuecomment-475806049

The tag pages themselves such as secure development and ways-of-working use the pagination function of 11ty to generate them.

To expand, all the tag pages listed on the all tags page are each an individual "page" generated from the tags page source - note the use of the pagination in the front-matter here.

Therefore, introducing pagination into these pages means we would need to implement the aforementioned double layered pagination within this site to achieve pagination on the individual tag pages.

Double layered pagination is not supported in 11ty at this time, implementation of pagination within specific tag pages would therefore have to be implemented manually.