Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lego2012/782c82439b7735ec9fc3198865494411 to your computer and use it in GitHub Desktop.
Save Lego2012/782c82439b7735ec9fc3198865494411 to your computer and use it in GitHub Desktop.

.Pages = Single page = empty slice

.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

.Site.Pages = any page = ALL pages of the site: content, sections, taxonomies, etc. – Superset of everything!

.Site.Regular.Pages = any page = Only regular (content) pages – Subset of .Site.Pages

.Data.Pages = All the Pages for the given Node (sections, taxonomies). This will be a subset of the above for all other nodes than the home page: On that Node I believe these slices are the same

In the home context (index.html), .Pages is the same as .Site.RegularPages.


.Data.Singular = The singular name of the taxonomy (e.g., tags => tag)

.Data.Plural = The plural name of the taxonomy (e.g., tags => tags)

.Data.Pages = The list of pages in the taxonomy

.Data.Terms = The taxonomy itself

.Data.Terms.Alphabetical = The taxonomy terms alphabetized

.Data.Terms.ByCount = The Terms ordered by popularity

Note that .Data.Terms.Alphabetical and .Data.Terms.ByCount can also be reversed:

  • .Data.Terms.Alphabetical.Reverse
  • .Data.Terms.ByCount.Reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment