You can generate an overview table listing all pages that have a page_id in their front matter, grouped by section. Pages also need to have search_exclude not set to true in order to be listed. This helps contributors find the page_id values used for related pages and national tools.
Page ID overview
Use this snippet:
{% include pageids-overview.html sidebar="main"%}
This renders as:
Example pages
| title | page_id | description | url |
|---|---|---|---|
| General page 1 | gp1 | showcases a fully annotated page with contributors, support logos, citations and linked guidance | /general_page |
| General page 2 | gp2 | shows page and type images together with compact more information links | /general_page_2 |
| General page 3 | gp3 | demonstrates country-specific resource metadata without a table of contents | /general_page_3 |
| General page 4 | gp4 | no description | /general_page_4 |
| General page 5 | gp5 | shows contributor and coordinator metadata with related page tiles | /general_page_5 |
| General page 6 | gp6 | shows a general page layout without the sidebar | /general_page_6 |
| General page 7 | gp7 | shows citation metadata and custom GitHub links for a data-backed page | /general_page_7 |