hugo/docs/content/en/readfiles/pages-vs-site-pages.md
2018-08-01 10:01:49 +02:00

1.5 KiB

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.