mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
1.3 KiB
1.3 KiB
- A regular page is a "post" page or a "content" page.
- A leaf bundle is a regular page.
- A list page can list regular pages and other list pages. Some
examples are: homepage, section pages, taxonomy term (
/tags/) and taxonomy (/tags/foo/) pages.- A branch bundle is a list page.
.Site.Pages- Collection of all pages of the site: regular pages, sections, taxonomies, etc. -- Superset of everything!
.Site.RegularPages- Collection of only regular pages.
The above .Site. .. page collections can be accessed from any scope in
the templates.
Below variables return a collection of pages only from the scope of the current list page:
.Pages- Collection of regular pages and only first-level section pages under the current list page.
.RegularPages- Collection of only regular pages under the
current list page. This excludes regular pages in nested sections/list pages (those are subdirectories with an
_index.mdfile. .RegularPagesRecursive- Collection of all regular pages under a list page. This includes regular pages in nested sections/list pages.
This feature was added in Hugo version 0.68.0
- Note
- From the scope of regular pages,
.Pagesand.RegularPagesreturn an empty slice.