2019-10-21 04:22:28 -04:00
|
|
|
* 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
|
2021-10-31 08:51:51 -04:00
|
|
|
examples are: homepage, section pages, _taxonomy_ (`/tags/`) and
|
|
|
|
_term_ (`/tags/foo/`) pages.
|
2019-10-21 04:22:28 -04:00
|
|
|
* 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
|
2020-05-31 06:43:23 -04:00
|
|
|
current _list_ page. This **excludes** regular pages in nested sections/_list_ pages (those are subdirectories with an `_index.md` file.
|
2019-10-21 04:22:28 -04:00
|
|
|
|
2020-05-31 06:43:23 -04:00
|
|
|
`.RegularPagesRecursive`
|
2022-11-17 10:14:29 -05:00
|
|
|
: Collection of **all** _regular_ pages under a _list_ page. This **includes** regular pages in nested sections/_list_ pages.
|
2019-10-21 04:22:28 -04:00
|
|
|
|
|
|
|
Note
|
|
|
|
: From the scope of _regular_ pages, `.Pages` and
|
|
|
|
`.RegularPages` return an empty slice.
|