Page collections 页面集合

Page collections 页面集合


A quick reference guide to Hugo's page collections.

Page #

assets/ Use these Page methods when rendering lists on [section pages], [taxonomy pages], [term pages], and the home page.

Site #

Use these Site methods when rendering lists on any page.

Filter #

Use the [where] function to filter page collections.

Sort #

By default, Hugo sorts page collections by:

  1. [Weight]
  2. [Date] in descending order
  3. [LinkTitle] falling back to [Title]
  4. [Filename] if the page is backed by a file

Use these methods to sort page collections.

Group #

Use these methods to group page collections.