mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Merge commit '766085c2dc6fc95ac30fda2a9ebde2355fc12554'
This commit is contained in:
9
docs/content/en/readfiles/pages-vs-site-pages.md
Normal file
9
docs/content/en/readfiles/pages-vs-site-pages.md
Normal file
@@ -0,0 +1,9 @@
|
||||
| Variable | Current context | Pages included |
|
||||
|----------------------|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `.Site.Pages` | **any** page | ALL pages of the site: content, sections, taxonomies, etc. -- Superset of everything! |
|
||||
| `.Site.RegularPages` | **any** page | Only regular (content) pages -- Subset of `.Site.Pages` |
|
||||
| `.Pages` | _List_ page | Regular pages under that _list_ page representing the homepage, section, taxonomy term (`/tags`) or taxonomy (`/tags/foo`) page -- Subset of `.Site.Pages` or `.Site.RegularPages`, depending on context. |
|
||||
| `.Pages` | _Single_ page | empty slice |
|
||||
|
||||
Note
|
||||
: In the **home** context (`index.html`), `.Pages` is the same as `.Site.RegularPages`.
|
Reference in New Issue
Block a user